Open terryg opened 3 years ago
herbert@watch:~ $ sudo cat /etc/systemd/system/herbert-server.service [Unit] Description=Main server for the herbert system After=network.target [Service] ExecStart=/usr/bin/node dist/server/main.js WorkingDirectory=/home/herbert/herbert StandardOutput=inherit StandardError=inherit Restart=always User=root Environment=DATABASE_URL=postgresql://herbert:YYhhjjuu6677@192.168.1.200:5432/herbert_production Environment=NODE_ENV= Environment=WSS_URL=ws://192.168.1.204:{{ hostvars[groups['socket_servers'][0]].wss_port }} Environment=API_URL= Environment=CLIENT_PORT= Environment=API_PORT=5000 Environment=WSS_PORT={{ hostvars[groups['socket_servers'][0]].wss_port }} [Install] WantedBy=multi-user.target herbert@watch:~ $