Compare commits

..
2 Commits
Author SHA1 Message Date
Phoenix 0e8af53767 worker service 2021-11-27 16:17:50 +01:00
Phoenix f7508c5f0a worker-service 2021-11-27 16:17:00 +01:00
4 changed files with 4 additions and 48 deletions

No files matched your search

+2 -6
View File
@@ -3,7 +3,7 @@ BYCEPS Instalation
# root user
```bash
$ addgroup byceps
$ groupadd byceps
$ usermod -a -G byceps USER
```
@@ -26,11 +26,7 @@ $ git clone https://github.com/byceps/byceps.git
```
```bash
python3 -m venv venv
```
```bash
$ . ./venv/bin/activate
$ $ . ./venv/bin/activate
```
```bash
+2 -2
View File
@@ -5,8 +5,8 @@ Requires=postgresql.service
After=postgresql.service
[Service]
User="GROUP"
Group="USER"
User="USER"
Group="GROUP"
Type=simple
WorkingDirectory=/srv/byceps
ExecStart=/bin/sh -c ". venv/bin/activate; export BYCEPS_CONFIG=/srv/byceps/config/%i_config.py; exec ./worker.py >> /var/log/byceps/worker.log"
-20
View File
@@ -1,20 +0,0 @@
[uwsgi]
callable=app
env=BYCEPS_CONFIG=/srv/byceps/config/"your_config.py"
venv=/srv/byceps/venv
chdir=/srv/byceps
cheaper=true
die-on-term=true
enable-threads=true
group="GROUP"
lazy-apps=true
master=true
need-app=true
plugin=python3
proc-name-spaced=byceps
protocol=uwsgi
single-interpreter=true
user="USER"
vacuum=true
worker-reload-mercy=5
wsgi-file=serve.py
-20
View File
@@ -1,20 +0,0 @@
[uwsgi]
callable=app
env=BYCEPS_CONFIG=/srv/byceps/sites/"your_site"/"your_config.py"
venv=/srv/byceps/venv
chdir=/srv/byceps
cheaper=true
die-on-term=true
enable-threads=true
group="GROUP"
lazy-apps=true
master=true
need-app=true
plugin=python3
proc-name-spaced=byceps
protocol=uwsgi
single-interpreter=true
user="USER"
vacuum=true
worker-reload-mercy=5
wsgi-file=serve.py