Coder Social home page Coder Social logo

Seems broken in node v0.4.0 about forever HOT 7 CLOSED

foreversd avatar foreversd commented on August 17, 2024
Seems broken in node v0.4.0

from forever.

Comments (7)

indexzero avatar indexzero commented on August 17, 2024

Thanks. Are you installing from npm@latest or are you cloning the repository and trying it?

I was noticing some issues with daemon.node (one of the libraries I maintain that forever depends on) in nodejs 0.4.0. I will investigate today / tomorrow and get back to you.

from forever.

eliaskg avatar eliaskg commented on August 17, 2024

I installed it on a fresh machine via
npm install forever

from forever.

indexzero avatar indexzero commented on August 17, 2024

Hmm... try this:

  npm install [email protected]
  cd /path/to/src
  git clone [email protected]:indexzero/forever.git
  cd forever
  npm install .

Let me know if that's any different for you. The above script will install daemon.node 0.2.0 and forever@HEAD.

Sometimes it's useful to check the logs so before you run forever try this:

  forever cleanlogs
  forever start myapp.js
  ls /tmp/forever
  # Send me the dump of these log files

from forever.

eliaskg avatar eliaskg commented on August 17, 2024

Will try installing daemon and forever from source later.

I took a look in the logfile after cleaning the logs and starting again. It's completely empty.

from forever.

eliaskg avatar eliaskg commented on August 17, 2024

Allright, I followed your steps. When I start forever I get this now:

/Downloads$ forever start testserver.js

/home/elias/local/node/lib/node/.npm/forever/0.3.1/package/lib/forever.js:80
  daemon.daemonize(options.logFile, options.pidFile, function (err, pid) {
         ^
TypeError: Object #<Object> has no method 'daemonize'
    at Object.startDaemon (/home/elias/local/node/lib/node/.npm/forever/0.3.1/package/lib/forever.js:80:10)
    at /home/elias/local/node/lib/node/.npm/forever/0.3.1/package/bin/forever:125:42
    at /home/elias/local/node/lib/node/.npm/forever/0.3.1/package/bin/forever:114:5
    at /home/elias/local/node/lib/node/.npm/forever/0.3.1/package/lib/forever.js:54:7

from forever.

indexzero avatar indexzero commented on August 17, 2024

Pushed daemon.node 0.3.0 and forever 0.3.5. Tested it and seems to be working with node >= 0.4.0

from forever.

eliaskg avatar eliaskg commented on August 17, 2024

Works like a charm, awesome!

from forever.

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.