around this issue I use https://github.com/visionmedia/deploy to deploy my apps. It will create a /var/www/productname directory. Inside that directory you have source, current and shared. The shared directory has the log and pid files. I found that a good directory structure so that's what I am using for all my projects.
How to automatically deploy node repo on github in linux server?
hope this fix your issue Travis-ci is for continuous integration (as its name) While Heroku is just a cloud platform. They are not for deployment. My solution is to set up a git hook on your server, push to it to trigger the hook, and do whatever you want in that script.
it helps some times First you need to have a persistent background service that will keep NodeJS processes (server instances) running, across crashes and reboots. Pm2 is a popular node process manager. It's mostly operates via CLI:
Does that help There are so many tutorials for this. Just look on the Heroku website if your problem is that you don't know how to deploy (Look at the Heroku git toolbelt), if your problem is that you don't know how to make a MEAN app (MongoDb, Express, Angular and Node) then I can forward you to this tutorial which I found really helpful https://scotch.io/tutorials/setting-up-a-mean-stack-single-page-application and https://thinkster.io/mean-stack-tutorial. I would also advise that you look into technologies such as Gulp and using Typescript with AngularJs if you weren't already.
How to deploy and Install Node.js and MongoDB application?