Skip to content
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

Forever + nodemon won’t work #594

Closed
rodrigogalindez opened this issue Jul 25, 2015 · 1 comment
Closed

Forever + nodemon won’t work #594

rodrigogalindez opened this issue Jul 25, 2015 · 1 comment
Labels
stale no activity for 2 weeks

Comments

@rodrigogalindez
Copy link

Hello,

I'm trying to use forever to run my server. I have done this:

forever start /opt/bitnami/nodejs/bin/nodemon --exitcrash server.js

and shell replies with:


warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: /opt/bitnami/nodejs/bin/nodemon

doing forever list shows:

`info: Forever processes running
data: uid command script forever pid id logfile uptime
data: [0] kP5Z /opt/bitnami/nodejs/bin/.node.bin /opt/bitnami/nodejs/bin/nodemon --exitcrash server.js 19243 19259 /home/bitnami/.forever/kP5Z.log 0:0:0:3.390``

so it's running.

however, when trying the server via IP:3000/, it won't work. I've tried to do a normal nodemon server.js and even /opt/bitnami/nodejs/bin/nodemon --exitcrash server and it will work. so either the issue is with forever, or with the ports (are open, as nodemon server.js works perfectly).

Running out of options. Any clue what's happening here?

Thanks in advance!

EDIT: forever server.js works.

Here's the logfile:

Usage: nodemon [nodemon options] [script.js] [args]

  See "nodemon --help" for more.

error: Forever detected script exited with code: 0
error: Script restart attempt #1
  Usage: nodemon [nodemon options] [script.js] [args]

  See "nodemon --help" for more.

error: Forever detected script exited with code: 0
error: Script restart attempt #2
  Usage: nodemon [nodemon options] [script.js] [args]

  See "nodemon --help" for more.

error: Forever detected script exited with code: 0
error: Script restart attempt #3
  Usage: nodemon [nodemon options] [script.js] [args]
@stale
Copy link

stale bot commented Dec 5, 2017

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

@stale stale bot added the stale no activity for 2 weeks label Dec 5, 2017
@stale stale bot closed this as completed Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity for 2 weeks
Projects
None yet
Development

No branches or pull requests

1 participant