GithubHelp home page GithubHelp logo

Comments (12)

alexpods avatar alexpods commented on July 19, 2024

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.

alexpods avatar alexpods commented on July 19, 2024

Also pull the latest version of the repo and make npm restart.
I think this will solve the problem.

from angular2-universal-starter.

bkinsey808 avatar bkinsey808 commented on July 19, 2024

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.

alexpods avatar alexpods commented on July 19, 2024

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.

bkinsey808 avatar bkinsey808 commented on July 19, 2024
> [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.

bkinsey808 avatar bkinsey808 commented on July 19, 2024

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.

alexpods avatar alexpods commented on July 19, 2024

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.

alexpods avatar alexpods commented on July 19, 2024

Try also 127.0.0.1:3000.

from angular2-universal-starter.

bkinsey808 avatar bkinsey808 commented on July 19, 2024

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.

bkinsey808 avatar bkinsey808 commented on July 19, 2024

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.

alexpods avatar alexpods commented on July 19, 2024

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.

bkinsey808 avatar bkinsey808 commented on July 19, 2024

I pulled the latest code and it works now. Love this project, thanks!

from angular2-universal-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.