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
Post a Comment