Start the taiga-back service.
This commit is contained in:
parent
0c62388942
commit
98c184f597
3 changed files with 28 additions and 0 deletions
15
roles/taiga/files/taiga-back.service
Normal file
15
roles/taiga/files/taiga-back.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=taiga backend, run by gunicorn
|
||||
After=network.target
|
||||
Documentation=https://github.com/taigaio/taiga-back
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3-gunicorn -w 3 -t 60 --pythonpath=. -b 127.0.0.1:8001 taiga.wsgi
|
||||
WorkingDirectory=/home/taiga/taiga-back/
|
||||
Type=simple
|
||||
User=taiga
|
||||
Group=taiga
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -4,3 +4,6 @@
|
|||
|
||||
- name: restart taiga-back
|
||||
service: name=taiga-back state=restarted
|
||||
|
||||
- name: reload systemd service files
|
||||
command: systemctl daemon-reload
|
||||
|
|
|
@ -90,6 +90,11 @@
|
|||
### DONE with our plugin
|
||||
|
||||
### THEN, setup taiga-back from git
|
||||
- name: copy systemd service file in for taiga
|
||||
copy: src=taiga-back.service dest=/usr/lib/systemd/system/taiga-back.service
|
||||
notify: reload systemd service files
|
||||
tags: taiga
|
||||
|
||||
- command: sudo -u taiga git clone https://github.com/taigaio/taiga-back.git
|
||||
chdir=/home/taiga/
|
||||
creates=/home/taiga/taiga-back
|
||||
|
@ -129,6 +134,11 @@
|
|||
mode=0640 owner=taiga group=taiga
|
||||
notify: restart taiga-back
|
||||
tags: taiga
|
||||
|
||||
- name: set taiga-back to start
|
||||
service: name=taiga-back state=running enables=yes
|
||||
tags: taiga
|
||||
|
||||
### DONE with taiga-back
|
||||
|
||||
### Getting close to the end.. setup taiga-front-dist from git
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue