Code: (SSH/Terminal/CMD)
forever start ~/domains/nova-rpg.com/nrpg_node_server/app.js
I tried just doing app.js and it said it couldn't find it (go figure).
| Quixjote Nova ~ Still Alive! |
|
December 07, 2025, 07:25:26 PM
|
|||
|
|||
| News: |
| Home | Help | Search | Calendar | Shop | Donations | Login | Register |
|
1
on: December 05, 2019, 03:53:28 PM
|
||
| Started by Noctis - Last post by Quixjote | ||
|
The only thing I noticed with mine is when I used forever to launch my app, I had to specify the directory since I didn't install at base level. so for me I have been having to use this (before nodemon):
Code: (SSH/Terminal/CMD) forever start ~/domains/nova-rpg.com/nrpg_node_server/app.js I tried just doing app.js and it said it couldn't find it (go figure). |
||
|
2
on: December 05, 2019, 02:48:21 PM
|
||
| Started by Noctis - Last post by Noctis | ||
|
Installing Node (CPanel without the node package).
Prior to this working, you will need to request ssh access. Download a SSH Client (I prefer PuTTy). Login in to your domain with the port provided by Asura. On the SSH, login with your username and password. You are now in the root of your hosting directory. Getting your first app up and running. It crashed. It always crashes. (Automatic restarts) NPM makes quick work of this. From SSH: Install Forever Code: npm install -g forever Finally, init forever Code: forever -w start index.js This checks for file changes and restarts the server and forever again. |
||