Hosting the Node JS app. So we already have our node js app on this github repo , or the one that you created. We used the One Click apps to set up our droplet, so we have all the dependencies we need. If we hadn't done this, we'd have to follow these steps to do it run our app. Get into our droplet Install Git Install NodeJS Clone our repo Serve the app. Now, we can only focus on the last two. Get into droplet Lets ssh into the droplet with the IP. Remember to replace the IP with your IP address from the Digital Ocean control panel. We should have a prompt like this. $ ssh root@138.197.80.147 root@nodejs-512mb-nyc3-01:~ # Note your terminal may ocasionally hang depending on your internet connection, because SSH needs to maintian an open connection. In case this happens, just close the terminal, and start again. Install Git and NodeJS We already have these installed. We can just confirm by root@nodejs-512mb-nyc3-01:~ # git --version git version ...
Comentarios
Publicar un comentario