16 lines
295 B
SYSTEMD
16 lines
295 B
SYSTEMD
|
[Unit]
|
||
|
Description=p5.js web editor
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
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
|
||
|
|