Report this

What is the reason for this report?

How deploy Node app to Ubuntu

Posted on August 10, 2013

I installed node, npm and mongodb on my dropplet and now wondering how to deploy my local node app to the server.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@abachuk: Is it a private github repo?

Run this command as the app user: <br> <br><pre>ssh-keygen -t rsa -N ‘’</pre> <br> <br>Press enter if it asks you where to store the key pair. <br> <br>Add the public key as a deploy key in your github repo: <br> <br><pre>cat ~/.ssh/id_rsa.pub</pre> <br> <br>Then clone the git repo: <br> <br><pre>cd ~ <br>git clone git@github.com:user/privateRepo.git</pre>

ok, great. I’ll wait for the article then. Thanks.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.