Compare commits
4
Commits
42bcd4bbe7
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6af1b54740 | ||
|
|
caf0a99341 | ||
|
|
99167414eb | ||
|
|
75b8362a0d |
No files matched your search
@@ -3,7 +3,7 @@ BYCEPS Instalation
|
||||
|
||||
# root user
|
||||
```bash
|
||||
$ groupadd byceps
|
||||
$ addgroup byceps
|
||||
$ usermod -a -G byceps USER
|
||||
```
|
||||
|
||||
@@ -26,7 +26,11 @@ $ git clone https://github.com/byceps/byceps.git
|
||||
```
|
||||
|
||||
```bash
|
||||
$ $ . ./venv/bin/activate
|
||||
python3 -m venv venv
|
||||
```
|
||||
|
||||
```bash
|
||||
$ . ./venv/bin/activate
|
||||
```
|
||||
|
||||
```bash
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user