Initial changes to integrate new portal
This commit is contained in:
parent
c4ffbb00e2
commit
0fa18af48e
18 changed files with 311 additions and 221 deletions
14
ansible/templates/butterbox-portal.service.j2
Normal file
14
ansible/templates/butterbox-portal.service.j2
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Portal Service
|
||||
After=network.target
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
User={{ butter_user }}
|
||||
ExecStart=/bin/bash -c 'source /home/{{ butter_user }}/portal_env/bin/activate && cd /home/{{ butter_user }}/butter-portal && flask --app butter-portal.py run'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue