[Unit]
Description={description}
[Service]
ExecStart=/home/{user}/.nvm/nvm-exec npm start
Restart=always
User=nobody
Group=nogroup
Environment=NODE_VERSION={node-version}
WorkingDirectory={app-directory}
[Install]
WantedBy=multi-user.target
Created
June 30, 2019 19:59
-
-
Save wllmsash/6101ffb2b0d8c947a7ae726fd9b24311 to your computer and use it in GitHub Desktop.
Install a systemd service for a node app using nvm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment