-
Notifications
You must be signed in to change notification settings - Fork 0
Deploy
Andreas Hartung edited this page Feb 17, 2019
·
1 revision
- Enable SSH
- Open Firewall-Port on Synology depending on which port you are going to run your woloverhttp-server (e.g. 3000)
- Connect via SSH Client
- Change to root-user
sudo -i
- Change directory
cd /volume1
- Create project directory, e.g.
mkdir nodejs/woloverhttp
- Copy project files into /volume1/nodejs/woloverhttp
- Run
npm install
in /volume1/nodejs/woloverhttp - npm install -g forever
- Create file /volume1/nodejs/woloverhttp/scripts/start.sh
#!/bin/sh
PATH=$PATH:/volume1/@appstore/Node.js_v8/usr/local/lib/node_modules/forever/bin
forever start --workingDir /volume1/nodejs/woloverhttp/ --sourceDir /volume1/nodejs/woloverhttp/ app.js
- Create file /volume1/nodejs/woloverhttp/scripts/stop.sh (!!! this kills all node apps !!!)
#!/bin/sh
killall -9 node
- Log in to Synology DSM an create for both scripts a custom task
- Disable SSH