+ 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.
16 Respostas
+ 7
Calviղ that looks like a time saver and a low cost solution. Have you been using it for a while.
+ 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.
+ 7
Calviղ ok so we can host as many projects as we like using "now" right??
+ 7
Calviղ okay thankyou for your time and information. i will go through the docs and try this out
+ 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
+ 6
Calviղ oh really?? I will check that out for sure. Do you recommend using shared hosting for nodejs deployments??
+ 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.
+ 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
+ 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.
+ 3
Sanoj Silva I have checked with a2hosting months ago, the technical mentioned their share hosting could allow to run Node.js applications.
+ 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.
+ 3
Sanoj Silva unlimited projects, for free tier max space is 1000mB if not mistaken.
+ 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.
+ 2
I would recommend you use serverless, however, since you have subscribe a2hosting, you could deploy your Node.js there too.
+ 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.
0
I would advise you to choose heroku.