e64c3d0b37
- We already use Daphne and channels to prepare the future use of websockets. - The app is served behind an nginx reverse-proxy - The services we need are managed by systemctl The production-like running instance of GestionÉvénementiel can be accessed on localhost:8080 outside vagrant.
19 lines
499 B
Desktop File
19 lines
499 B
Desktop File
Description="Gestion Événementiel - Daphne"
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=vagrant
|
|
Group=vagrant
|
|
TimeoutSec=300
|
|
WorkingDirectory=/vagrant
|
|
Environment="DJANGO_SETTINGS_MODULE={{SETTINGS}}"
|
|
Environment="DBNAME={{DBNAME}}"
|
|
Environment="DBUSER={{DBUSER}}"
|
|
Environment="DBPASSWD={{DBPASSWD}}"
|
|
ExecStart=/home/vagrant/venv/bin/daphne -u /srv/GE/GE.sock \
|
|
evenementiel.asgi:channel_layer
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|