-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
How to deploy with PM2? #380
Comments
This project doesn't appear to provide an app server. You will need to create an Express (or similar) server to point pm2 at. Ideally, you should be pushing the contents of |
In case it helps anyone, I found a way to have pm2 serve the |
@louisscruz can you write a page in the wiki https://github.com/AngularClass/angular2-webpack-starter/wiki |
@gdi2290 Done! |
https://github.com/AngularClass/angular2-webpack-starter/wiki/How-to-serve-with-PM2 |
Resolving - resolution exists in wiki article |
Running
npm run server:prod
is working on my server. However, when I try to use PM2 throughpm2 start dist
, there's a list of errors in the logs:PM2: 2016-03-03 16:59:10: Script /opt/dailydownbeat/dist had too many unstable restarts (15). Stopped. "errored"
Before I submit an issue with the PM2 people, can you verify that this should work? Do I need to configure something in the project to make this work?
The text was updated successfully, but these errors were encountered: