Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 918
tx fun Avatar asked Nov 15 '25 06:11

tx fun


2 Answers

Use nohup, like

nohup gulp serve &
like image 121
YOU Avatar answered Nov 17 '25 21:11

YOU


Following command helped me to fix the issue:

forever start node_modules/gulp/bin/gulp.js 
like image 40
sweta Avatar answered Nov 17 '25 22:11

sweta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!