Search code examples
angularjsnode.jsgulprhel

Running Gulp in background always


I have to maintain a AngularJS/Node.js application which uses Gulp with browserify. I cannot install npm on server so I unzipped node x64 and added it to the path. The code is compiled locally with node_modules in the code folder. We are unzipping it into a folder in server and executing the gulp serve &. The process starts fine, however exits as soon as the user is logged out. Kindly suggest the best way to resolve this issue.


Solution

  • Use nohup, like

    nohup gulp serve &