Fix in readme.md
This commit is contained in:
parent
6cbe92d1e4
commit
e00271b2fe
1 changed files with 27 additions and 0 deletions
27
README.md
27
README.md
|
|
@ -5,3 +5,30 @@
|
||||||
You can install PastafariStats with its command.
|
You can install PastafariStats with its command.
|
||||||
|
|
||||||
`pip3 install git+https://bitbucket.org/paramecio/pastafaristats`
|
`pip3 install git+https://bitbucket.org/paramecio/pastafaristats`
|
||||||
|
|
||||||
|
### Add systemd service
|
||||||
|
|
||||||
|
If your linux distro use systemd, you can initialize the script with this systemd unit
|
||||||
|
|
||||||
|
`# Save it in /etc/systemd/system/pastafariweb.service
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Pokermind site
|
||||||
|
After=syslog.target
|
||||||
|
After=network.target
|
||||||
|
After=mysqld.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=coesinfo
|
||||||
|
Group=coesinfo
|
||||||
|
WorkingDirectory=/home/coesinfo/sites/pokermind
|
||||||
|
# ExecStart=/usr/bin/python3 index.py
|
||||||
|
# ExecStart=/usr/local/bin/gunicorn -w5 --reload -b 127.0.0.1:8080 --timeout 300 --error-logfile /home/coesinfo/sites/pokermind/error.log index:app
|
||||||
|
ExecStart=/home/coesinfo/virtualenv/bin/gunicorn -w3 -b 127.0.0.1:8080 --timeout 300 --error-logfile /home/coesinfo/sites/pokermind/error.log --reload index:app
|
||||||
|
Restart=always
|
||||||
|
Environment=USER=coesinfo HOME=/home/coesinfo
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue