diff --git a/deploy.sh b/deploy.sh index f7ea69d4..e363f1f5 100644 --- a/deploy.sh +++ b/deploy.sh @@ -258,7 +258,7 @@ Description=Lightning Pub Service After=network.target [Service] -ExecStart=$(which npm) start +ExecStart=/bin/bash -c 'source ${USER_HOME}/.nvm/nvm.sh && npm start' WorkingDirectory=${USER_HOME}/lightning_pub User=$(whoami) Restart=always