Skip to content

narenltk/forever_node_js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Forever js on any Virtual Machine

For detalied information check the Medium Blog

Here you can get the code of the server.js for testing you application.

If you wish to use the same code which I have then open up ur terminal and give the following command,

git clone https://github.com/narenltk/forever_node_js.git

then you need to install and check your local machine,

npm install

Once your done with all the steps given above all you to do is just fire up the server, with the following command and check your local host

npm start

or

node server.js

Now checkout "https://localhost:2020"

I have used the port 2020 and you can change the port to any number you like.

The list of the forever js commands are as follows,

Installing the forever,

npm i forever -g
forever start server.js
forever list
forever stop server.js
forever stop o
forever stopall
forever logs
forever restart server.js
forever restart 0         --> restarts uid o script alone
forever restartall        --> restarts all running forever scripts
forever -h                --> -h, –help: Command line help information
forever config            --> lists all forever user configurations
forever clear             --> clears the specified forever config by its key
forever cleanlogs         --> deletes all historical forever log files
forever set               --> defines a forever config value for an unique key

About

This repo given you a list of the forever js commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors