-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Run parse-server as a service in EC2 AWS linux #2382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I recommend you to use PM2 |
@cleever Sorry, don't get you. What is PM2? |
you could use either pm2 or forever, they are daemon script that let you app run on your server forever (even though you are connect) |
http://pm2.keymetrics.io/ "pm2" is a full feature process manager for node. "forever" aims to run your application continuously. Is an option, but I do not recommend for production environments. |
Thanks. I'll go through the document. Thanks. @cleever |
Package.json:
My mongodb is started as a service. Everything's fine if I use the following command to start my parse-server:
But when I start by pm2. It seems the database is not connected. Because I can't see any data in my dashboard.
I created my pm2 app like this:
Inside myapp.sh:
Any idea? Thanks. |
I installed parse-server on my AWS Linux EC2. I can run it through:
But the problem is it will quit when I close my SSH. Is there any sample on how to run it as a service? Thanks.
The text was updated successfully, but these errors were encountered: