Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Is there a build in provision for keeping the application running forever using forever/ supervisor ? #1632

Closed
PManager1 opened this issue Nov 13, 2016 · 5 comments

Comments

@PManager1
Copy link

No description provided.

@shanavas786
Copy link
Contributor

I use pm2 and suggest it. Build has nothing to do with it. You can simply run pm2 start server.js
I think something similar applies for forever/supervisor also.

@PManager1
Copy link
Author

@shanavas786 quick question: So I'm using docker so that i can mimic the linux / ubuntu platform while developing on mac. Do you recommend running docker on ec2 (ubuntu ) again and run the app via that or i can just get the app files from git and run it there ?

@shanavas786
Copy link
Contributor

I haven't used docker.
It seems adding

CMD npm install -g pm2
CMD pm2 start server.js

to dockerfile would be enough.

https://hub.docker.com/r/meanjs/mean/ may help you

@PManager1
Copy link
Author

PManager1 commented Nov 14, 2016

I appreciate that.
But I try to give this command, It didnt start.
fyi: im using port 80 so i give sudo.

Where do i change the info that im running this app in production env ?

image

this is my server.js
image

@PManager1
Copy link
Author

Its easy just do
After installing gulp both as global and local,

sudo pm2 start gulp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants