You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 dist to a CDN and having your app server run separately.
In case it helps anyone, I found a way to have pm2 serve the dist folder. This is more or less the setup. Then, I've weaseled nginx into picking up the appropriate port for non-backend requests. Hope this can help someone!
Activity
moderndegree commentedon Mar 4, 2016
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
distto a CDN and having your app server run separately.louisscruz commentedon Mar 4, 2016
In case it helps anyone, I found a way to have pm2 serve the
distfolder. This is more or less the setup. Then, I've weaseled nginx into picking up the appropriate port for non-backend requests. Hope this can help someone!PatrickJS commentedon Mar 9, 2016
@louisscruz can you write a page in the wiki https://github.com/AngularClass/angular2-webpack-starter/wiki
louisscruz commentedon Mar 9, 2016
@gdi2290 Done!
PatrickJS commentedon Mar 9, 2016
https://github.com/AngularClass/angular2-webpack-starter/wiki/How-to-serve-with-PM2
awesome work! thanks!
joshwiens commentedon Oct 27, 2016
Resolving - resolution exists in wiki article