Compare commits
2
Commits
master
..
0e8af53767
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e8af53767 | ||
|
|
f7508c5f0a |
No files matched your search
@@ -3,7 +3,7 @@ BYCEPS Instalation
|
|||||||
|
|
||||||
# root user
|
# root user
|
||||||
```bash
|
```bash
|
||||||
$ addgroup byceps
|
$ groupadd byceps
|
||||||
$ usermod -a -G byceps USER
|
$ usermod -a -G byceps USER
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -26,11 +26,7 @@ $ git clone https://github.com/byceps/byceps.git
|
|||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3 -m venv venv
|
$ $ . ./venv/bin/activate
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ . ./venv/bin/activate
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ Requires=postgresql.service
|
|||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User="GROUP"
|
User="USER"
|
||||||
Group="USER"
|
Group="GROUP"
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/srv/byceps
|
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"
|
ExecStart=/bin/sh -c ". venv/bin/activate; export BYCEPS_CONFIG=/srv/byceps/config/%i_config.py; exec ./worker.py >> /var/log/byceps/worker.log"
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
Reference in new issue
Block a user