Code Monkey home page Code Monkey logo

Comments (5)

ericclemmons avatar ericclemmons commented on June 25, 2024

Oh, interesting!

Is the scenario that you have some code that works fine when the server/task starts, but then you, for example, hit an end-point, a 500 is triggered, an error is thrown, and you want the server to come back up?

Sounds plausible & doable, and most importantly, testable!

from grunt-express-server.

baugarten avatar baugarten commented on June 25, 2024

:) the plan isn't really to error but for a variety of reasons a node server can crash in production (untested code path, out of memory, etc) so I would like to start my server knowing that if it dies for some strange reason, it will come back to life

Sent with my thumbs

On Jun 17, 2014, at 9:46 PM, Eric Clemmons [email protected] wrote:

Oh, interesting!

Is the scenario that you have some code that works fine when the server/task starts, but then you, for example, hit an end-point, a 500 is triggered, an error is thrown, and you want the server to come back up?

Sounds plausible & doable, and most importantly, testable!


Reply to this email directly or view it on GitHub.

from grunt-express-server.

ericclemmons avatar ericclemmons commented on June 25, 2024

Personally, I use forever (https://github.com/nodejitsu/forever) in production, since grunt nor grunt-express-server is really best suited for production environments.

My npm start is pretty much grunt build optimize && forever restart app/cluster.js.

Do you really want to have grunt running your process on production?

from grunt-express-server.

baugarten avatar baugarten commented on June 25, 2024

That's actually a good point. I don't. I'm going to go ahead and see myself out. Cheers!

from grunt-express-server.

ericclemmons avatar ericclemmons commented on June 25, 2024

I have no problem with restarting express via this task, but I wanted to be sure of the use-case before implementing it.

Thanks for the discussion!

from grunt-express-server.

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.