Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Lucas Santos
Lucas Santos
19,315 Points

Deploying NodeJs app to a live server

So iv been learning a lot about NodeJs lately and while I have been doing all of this locally which listens to port 3000 it just crossed my mind that in the videos it did not show how you would migrate nodejs to a live server.

How do you go from a local server to a live server?

Do you just drop the files in the ftp like a regular file and leave the app listening to port 3000 or do we change what port the app will be listening to? Basically im asking if there is any changes we have to make to the file in order to take it to a live server.

Also I am using EXPRESS

3 Answers

Sergey Vrenev
Sergey Vrenev
28,778 Points

I would like to know the same thing... How without heroku deploy app on cheap vps server with centos, ubuntu and etc? Maybe Huston will create workshop about deploying app on vps?