Forever with `npm start`
See original GitHub issueHi,
I’m normally starting my script with npm start
to get access to the user environment, which includes variables from the package.json (e.g. process.env.npm_package_config_port
).
Is there a way to start my script with npm start
in forever? Or an alternative way to get the npm environment variables when starting the script with forever?
Issue Analytics
- State:
- Created 10 years ago
- Reactions:5
- Comments:23 (2 by maintainers)
Top Results From Across the Web
forever - npm
A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever). Latest version: 4.0.3, last published: a year ago....
Read more >nodejs forever : How to run my npm application - Stack Overflow
i want to run it in background. I found forever package for this but dont know how can i run a application that...
Read more >Running Node.js scripts continuously using forever
Forever is an npm module that ensures a Node.js script continuously runs in the background on the server. It's a helpful CLI tool...
Read more >How to run your Node server continuously with forever
To start running a script with forever, use the forever start command, followed by the script name. Here's an example: # running a...
Read more >Making your node apps run on startup and forever | milose
Forever is a simple CLI tool for ensuring that a given script runs continuously (i.e. forever). Install it globally using NPM: $ [sudo]...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should work:
So running from your application’s directory you could just use ‘./’ as your path.
Solution for NPM START problem with forever.
https://gist.github.com/dineshsprabu/e7553cc9cc2f23b5c696