![]() This shell script will check the frontend-app process is running on the server if exist then kill and then start or you can start or restart based on the status. if forever list | grep -v "grep" | grep "frontend-app" then forever stop "frontend-app" echo 'stopped' fi forever -killTree -minUptime 5000 -uid "frontend-app" -a start -c "npm run start:beta" src/server.js you can directory put your forever command to this hook or easy way to make a shell script in which you can run or restart the process using forever. ![]() The final deployed will be the last hook in which you can start your application. so the update method you can use and copy server file to the application directory.ĭuring fetch you can call the submodule command to take clone to third party repo if you needed.ĭuring publish you can run the gulp/build and npm install command. development: ) ĭuring the deployment sometime we need some file to the server those file should be copy every time from the server. After all these basic configuration you have to mention you deployment environments like dev/stag/prod in which you actually code will deploy so mention which branch you want to deploy in development server and your server ip. ![]() Keep Releases option gives you flexibility to how many build you are saving in your disk space so you can change it accordingly. I have integrate the slack for notify your channel after all steps are finished.In the shipit config you can mention your repo url and workspace (tmp) or some folder. ![]() ![]() so in first we have include some node packages for shipit library. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |