Compare commits
4
Commits
0e8af53767
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6af1b54740 | ||
|
|
caf0a99341 | ||
|
|
99167414eb | ||
|
|
75b8362a0d |
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ Requires=postgresql.service
|
|||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User="USER"
|
User="GROUP"
|
||||||
Group="GROUP"
|
Group="USER"
|
||||||
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"
|
||||||
|
|||||||
@@ -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