marklogic-community / grove

Grove, a toolkit full of tooling, templates, and other resources that help with building UI applications on top of MarkLogic.
https://marklogic-community.github.io/grove/
Other
5 stars 2 forks source link

Provide instructions how to deploy and run using PM2 #7

Open grtjn opened 5 years ago

grtjn commented 5 years ago

Can be categorized under 'Productionalizing' in the left-hand menu.

grtjn commented 5 years ago

This could be a useful starting point: https://github.com/marklogic-community/slush-marklogic-node/blob/master/app/templates/INSTALL.mdown

The gulp and roxy commands obviously don't work, but some have been replaced with npm commands..

mariannemyers commented 5 years ago

I recently ran into a situation where pm2 did not work on Windows 10. I was able to use the pm2-windows-startup package that seems to "wrap" pm2 so it works on Windows.

The steps that worked for this situation: npm install -g pm2 pm2 start ecosystem.config.js --env production npm install pm2-windows-startup -g pm2-startup install pm2 save