Report this

What is the reason for this report?

git - setup new droplet as a remote for existing rails repository

Posted on August 15, 2015

I have an existing rails/git project that I’ve been using with both git and heroku remotes. I want to setup a remote for my new droplet to use instead of the heroku one. I’m trying to find the URL to create the remote:

git remote add docean ssh:// … ?

and the instructions to setup the Ubuntu/Rails instance in the droplet to be that remote.



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.

You can use the format:

git remote add docean user@1.2.3.4:/path/to/repo.git

You do not need to specify “ssh://” provided that you define the user @ host.

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.