Comments (12)
Hmm, right now I don't know the cause of this error. I'm going to elaborate on this.
Could you run $(npm bin)/pm2 show all
and send me the results?
from angular2-universal-starter.
Also pull the latest version of the repo and make npm restart
.
I think this will solve the problem.
from angular2-universal-starter.
The latest pull fixed the bugs in the log. But I can't figure out what port the app is supposed to be running when i run it with pm2. Is that coming from ecosystem.json?
It is not running on http://localhost:3000/
or http://localhost:8000/
$(npm bin)/pm2 show all
returns this:
[PM2][WARN] all doesn't exist
from angular2-universal-starter.
It's in ecosystem.json
, environment variable PORT
. I use it here then.
I gave you a wrong command, sorry for this. Now it should be npm run show
.
from angular2-universal-starter.
> [email protected] show /home/bkinsey/opt/bkinsey808/angular2-universal-starter
> pm2 show $(node -e "console.log(require('./ecosystem.json').name)")
Describing process with id 0 - name angular2-universal-starter
┌───────────────────┬─────────────────────────────────────────────────────────────────────────────┐
│ status │ online │
│ name │ angular2-universal-starter │
│ id │ 0 │
│ path │ /home/bkinsey/opt/bkinsey808/angular2-universal-starter/dist/private/app.js │
│ args │ │
│ exec cwd │ /home/bkinsey/opt/bkinsey808/angular2-universal-starter │
│ error log path │ /home/bkinsey/opt/bkinsey808/angular2-universal-starter/logs/errors-0.log │
│ out log path │ /home/bkinsey/opt/bkinsey808/angular2-universal-starter/logs/output-0.log │
│ pid path │ /home/bkinsey/.pm2/pids/angular2-universal-starter-0.pid │
│ mode │ fork_mode │
│ node v8 arguments │ │
│ watch & reload │ ✔ │
│ interpreter │ node │
│ restarts │ 2 │
│ unstable restarts │ 0 │
│ uptime │ 20m │
│ created at │ 2016-01-15T08:51:46.539Z │
└───────────────────┴─────────────────────────────────────────────────────────────────────────────┘
Process configuration
Revision control metadata
┌──────────────────┬──────────────────────────────────────────────────────────┐
│ revision control │ git │
│ remote url │ https://github.com/bkinsey808/angular2-universal-starter │
│ repository root │ /home/bkinsey/opt/bkinsey808/angular2-universal-starter │
│ last update │ 2016-01-15T09:12:25.227Z │
│ revision │ 8cb0ec82f194a06090d2e0e8412156798d3df0f7 │
│ comment │ Merge branch 'master' into app-case-fix │
│ branch │ app-case-fix │
└──────────────────┴──────────────────────────────────────────────────────────┘
Probes value
┌────────────┬────────┐
│ Loop delay │ 1.96ms │
└────────────┴────────┘
from angular2-universal-starter.
ok, that's what I thought. then it should be port 3000. Chrome says:
This webpage is not available
ERR_CONNECTION_REFUSED
from angular2-universal-starter.
Hmm, could you
git checkout master
git pull origin master
npm restart
And then tell me whether you still have any problems or not.
from angular2-universal-starter.
Try also 127.0.0.1:3000.
from angular2-universal-starter.
Same result. neither 127.0.0.1:3000
nor http://localhost:3000/
works. But http://localhost:8000/
works when I run node dist/private/app.js
from angular2-universal-starter.
error log is empty since your fix. output log says
Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
from angular2-universal-starter.
Could you turn off a watch mode (set watch
in ecosystem.json
file to false
). Then npm restart
.
This is not a good solution. But if it works we'll understand the cause of the problem.
from angular2-universal-starter.
I pulled the latest code and it works now. Love this project, thanks!
from angular2-universal-starter.
Related Issues (20)
- Add minification for production build HOT 2
- Dev watchers stops on error
- Route from form submit error in webworker-mode HOT 1
- Universal setTitle HOT 9
- ng2-highcharts issue HOT 2
- Webpack2 Support HOT 7
- Inline html templates? HOT 1
- Caching... HOT 1
- Serverside rendering is not working? HOT 1
- Update to rc1
- Question: Do you plan to keep this project up-to-date? HOT 15
- Add support for @angular/router HOT 3
- Update angular up to rc.5 HOT 11
- DLL error on npm start HOT 2
- Unable to start
- Update To latest angular ~2.1.0
- Static pre-render documentation?
- manipulate meta tags in Universal
- how to host angular universal project in iis
- Auto restart and rebuild angular universal on save
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-universal-starter.