+ 10

Deploying nodejs application

Can someone help me out how to deploy a nodejs application (react frontend). Ive been working with php for over an year now. I can host a php application in any hosting provider using apache server. But how do i deploy a nodejs application.

24th Dec 2018, 6:14 PM
Sanoj Silva
Sanoj Silva - avatar
16 Respostas
+ 7
Calviղ that looks like a time saver and a low cost solution. Have you been using it for a while.
25th Dec 2018, 4:08 AM
Sanoj Silva
Sanoj Silva - avatar
+ 7
Calviղ so its a pay as you go kinda thing right. If i want to use databases i need to use an external one right like firebase.
25th Dec 2018, 4:19 AM
Sanoj Silva
Sanoj Silva - avatar
+ 7
Calviղ ok so we can host as many projects as we like using "now" right??
25th Dec 2018, 5:37 AM
Sanoj Silva
Sanoj Silva - avatar
+ 7
Calviղ okay thankyou for your time and information. i will go through the docs and try this out
25th Dec 2018, 5:55 AM
Sanoj Silva
Sanoj Silva - avatar
+ 6
Most dedicated hosting services also provides ssh connections. Which gives you a direct access to the server and which you will use to upload and start your project. Use nohup to run your application so that it remains active when you close the connection. I recommend digitalocean.com
24th Dec 2018, 8:00 PM
Toni Isotalo
Toni Isotalo - avatar
+ 6
Calviղ oh really?? I will check that out for sure. Do you recommend using shared hosting for nodejs deployments??
25th Dec 2018, 4:10 AM
Sanoj Silva
Sanoj Silva - avatar
+ 4
There are several hosting providers that supports for the hosting node.js applications. But you can only host the application in vps or cloud but not in the shared hosting as it requires different environment.
24th Dec 2018, 7:31 PM
Adarsh.n. Bidari
Adarsh.n. Bidari - avatar
+ 4
Adarsh.n. Bidari yes i have a shared hosting account in a2hsoting.com but they say that i need to use a vps for nodejs deployments
25th Dec 2018, 4:00 AM
Sanoj Silva
Sanoj Silva - avatar
+ 4
Toni Isotalo thank you for your information. I've never heard of nohup before and ive been using cronjobs for my entire life😅. Thank you for that and i have checked digitalocean.com. it seems good for my needs. Ill go through in depth and let you know.
25th Dec 2018, 4:07 AM
Sanoj Silva
Sanoj Silva - avatar
+ 3
Sanoj Silva I have checked with a2hosting months ago, the technical mentioned their share hosting could allow to run Node.js applications.
25th Dec 2018, 4:08 AM
Calviղ
Calviղ - avatar
+ 3
Sanoj Silva Many developers are using now, it's one of the famous serverless in the market, definitely not a low cost server, it allows you to use it for free of charge when the website has low traffic, you would need to pay monthly fee once traffic of your website reaches certain volume.
25th Dec 2018, 4:11 AM
Calviղ
Calviղ - avatar
+ 3
Sanoj Silva unlimited projects, for free tier max space is 1000mB if not mistaken.
25th Dec 2018, 5:39 AM
Calviղ
Calviղ - avatar
+ 2
Try serverless deployment. Go to https://zeit.co/now, register and install Now. To deploy your Node.js just run "now" comment on your working folder.
25th Dec 2018, 1:15 AM
Calviղ
Calviղ - avatar
+ 2
I would recommend you use serverless, however, since you have subscribe a2hosting, you could deploy your Node.js there too.
25th Dec 2018, 4:14 AM
Calviղ
Calviղ - avatar
+ 2
Sanoj Silva Start with free tier, upgrade to monthly fee tier once you have more traffic. You could use external database services, like Mongodb atlas or mlab.
25th Dec 2018, 4:31 AM
Calviղ
Calviղ - avatar
0
I would advise you to choose heroku.
23rd Feb 2021, 2:44 PM
Adrien D
Adrien D - avatar