简体   繁体   中英

How do I host a website that depends on node.js?

When running the site locally, I include all my node files in the same folder as the index.html file and then from the console I run the server side js which is node-dependent.

So in hosting this online, do I upload all the node files into the website directory? and how do I run the serverside js once the website is ready to be run?

thanks

You need to find a hosting service that supports node.js. Heroku is a good option for starting out. They have a free tier available. Once you have signed up, setting up your site and deploying it is quite simple if you're using a git repository and their command-line tools .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM