digital ocean - Deploy node.js app on digitalocean using Codeship -


i trying use codeship automatically deploy simple helloworld node.js app onto digitalocean droplet.

this custom script:

rsync -avz -e "ssh" ~/clone/ root@ip_address:/var/destination/ npm install npm start 

my intention whenever there code changes, codeship copy files destination folder, , perform npm install , npm start restart server automatically.

when run custom script, npm start cause codeship custom scripts stuck there, not returning, , no longer report successful deployment.

what common practise perform npm install/npm start/node server.js automatically?


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -