run script and service
This commit is contained in:
parent
49bf010b87
commit
ca950ed515
@ -1,8 +1,9 @@
|
||||
Flask==2.0.0
|
||||
Flask-RESTful==0.3.9
|
||||
flask-cors==3.0.10
|
||||
jinja2==2.11.3
|
||||
jinja2==3.0
|
||||
PyYAML==5.4.1
|
||||
pathvalidate==2.4.1
|
||||
transliterate==1.10.2
|
||||
fire==0.4.0
|
||||
gunicorn==19.9.0
|
||||
|
7
run.sh
Normal file
7
run.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd "$( dirname "$0" )" || exit
|
||||
|
||||
. venv/bin/activate
|
||||
|
||||
gunicorn --bind 0.0.0.0:18333 pub1c-rest:app
|
13
webpub1c-admin.service
Normal file
13
webpub1c-admin.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=1C Web Publication Admin service
|
||||
After=apache2.service apache_restarter.service
|
||||
Wants=apache2.service apache_restarter.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/path/run.sh
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user