Compare commits

..
4 Commits
Author SHA1 Message Date
Phoenix 6af1b54740 „BYCEPS-Instalation.md“ ändern 2021-12-12 14:46:18 -08:00
Phoenix caf0a99341 create venv 2021-11-28 13:57:43 +01:00
Phoenix 99167414eb uwsgi ini files 2021-11-27 16:36:58 +01:00
Phoenix 75b8362a0d byceps worker service 2021-11-27 16:35:50 +01:00
4 changed files with 61 additions and 2 deletions

No files matched your search

+6 -2
View File
@@ -3,7 +3,7 @@ BYCEPS Instalation
# root user # root user
```bash ```bash
$ groupadd byceps $ addgroup byceps
$ usermod -a -G byceps USER $ usermod -a -G byceps USER
``` ```
@@ -26,7 +26,11 @@ $ git clone https://github.com/byceps/byceps.git
``` ```
```bash ```bash
$ $ . ./venv/bin/activate python3 -m venv venv
```
```bash
$ . ./venv/bin/activate
``` ```
```bash ```bash
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=Byceps worker for %i site
After=network-online.target
Requires=postgresql.service
After=postgresql.service
[Service]
User="GROUP"
Group="USER"
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"
[Install]
WantedBy=multi-user.target
+20
View File
@@ -0,0 +1,20 @@
[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
@@ -0,0 +1,20 @@
[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