Skip to content
Andreas Hartung edited this page Feb 17, 2019 · 1 revision

Synology NAS

Preperation

  • Enable SSH
  • Open Firewall-Port on Synology depending on which port you are going to run your woloverhttp-server (e.g. 3000)

Deployment

  1. Connect via SSH Client
  2. Change to root-user sudo -i
  3. Change directory cd /volume1
  4. Create project directory, e.g. mkdir nodejs/woloverhttp
  5. Copy project files into /volume1/nodejs/woloverhttp
  6. Run npm install in /volume1/nodejs/woloverhttp
  7. npm install -g forever
  8. 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
  1. Create file /volume1/nodejs/woloverhttp/scripts/stop.sh (!!! this kills all node apps !!!)
#!/bin/sh

killall -9 node
  1. Log in to Synology DSM an create for both scripts a custom task

Cleanup

  • Disable SSH
Clone this wiki locally