I begun with nodejs
and express framework.
In localhost its ok i can run my app, but i would like to know how can i use it in my website that host in godaddy server.
I use to execute just php but nodejs i don't know how can i do that.
In local, I write in command line:
node app.js
or
npm start
with package.json, but in Godaddy I can't use commandline to start the app.
Step 1: Login to your GoDaddy account, click on Hosting, and select Manage Account to go to the control panel. Step 2: Click “Content” and select “FTP Client”. Step 3: Upload your web application folder by selecting the application folder on your Local System and clicking “>>” to upload to the root folder.
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.
Our shared hosting does not have node support. Right now your best bet is to get a virtual dedicated server but in the near future we'll have some additional options that will be priced closer to the Shared price point but with Node support. Hope this helps!
GoDaddy doesn't support Node as far as I know, the server has to have Node installed for your command to run. Consider Heroku or NodeJitsu if you want Node hosting. Plus, they're free at a first tier and a much better product in my experience than GoDaddy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With