p5.js-web-editor/p5.js-web-editor.service

17 lines
322 B
SYSTEMD
Raw Normal View History

2020-09-22 06:26:54 +00:00
[Unit]
Description=p5.js web editor
After=network.target
[Service]
2020-11-02 14:11:27 +00:00
Environment=NODE_PORT=8000
2020-09-22 06:26:54 +00:00
Type=simple
User=YOUR_USER
EnvironmentFile=/home/YOUR_USER/p5.js-web-editor/.env
WorkingDirectory=/home/YOUR_USER/p5.js-web-editor
ExecStart=/usr/bin/npm run start:prod
Restart=on-failure
[Install]
WantedBy=multi-user.target