Fix in readme.md
This commit is contained in:
parent
e00271b2fe
commit
4a7b47a1e4
1 changed files with 7 additions and 10 deletions
17
README.md
17
README.md
|
|
@ -10,24 +10,21 @@ You can install PastafariStats with its command.
|
||||||
|
|
||||||
If your linux distro use systemd, you can initialize the script with this systemd unit
|
If your linux distro use systemd, you can initialize the script with this systemd unit
|
||||||
|
|
||||||
`# Save it in /etc/systemd/system/pastafariweb.service
|
`# Save it in /etc/systemd/system/pastafaristats.service
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Pokermind site
|
Description=Pastafari Stats
|
||||||
After=syslog.target
|
After=syslog.target
|
||||||
After=network.target
|
After=network.target
|
||||||
After=mysqld.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=coesinfo
|
User=pzoo
|
||||||
Group=coesinfo
|
Group=pzoo
|
||||||
WorkingDirectory=/home/coesinfo/sites/pokermind
|
WorkingDirectory=/home/pzoo
|
||||||
# ExecStart=/usr/bin/python3 index.py
|
ExecStart=pastafaristats
|
||||||
# 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
|
Restart=always
|
||||||
Environment=USER=coesinfo HOME=/home/coesinfo
|
Environment=USER=pzoo HOME=/home/pzoo
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target`
|
WantedBy=multi-user.target`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue