Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing v8 options to forever with nodejs

So I use forever with nodejs to keep my servers up. I need to pass in some v8 options. I can do this via nodejs command line, but how I can do this with forever?

like image 749
BigPoppa Avatar asked Jun 21 '12 15:06

BigPoppa


People also ask

Why do you use forever with NodeJS?

The purpose of Forever is to keep a child process (such as your node. js web server) running continuously and automatically restart it when it exits unexpectedly.

Does node still use V8?

V8 is Google's open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.

How do I run NodeJS app forever when console is closed?

js application locally after closing the terminal or Application, to run the nodeJS application permanently. We use NPM modules such as forever or PM2 to ensure that a given script runs continuously. NPM is a Default Package manager for Node.


1 Answers

forever start -c "node --harmony" app.js
like image 132
Deividy Avatar answered Oct 01 '22 10:10

Deividy