How to get git remote URL of the dokku app
Asked Answered
M

1

7

I installed dokku on a pure Ubuntu server 16.04 LTS My server's domain name is e.g. abc.def.com I created a new app, e.g. blog

dokku apps:create blog

How can I get correct URL to set git remote

git remote add dokku <?>:blog

I tried the case based on the original docs

but I cannot reach the repo when I try to push

> git push dokku

fatal: 'blog' does not appear to be a git repository               
fatal: Could not read from remote repository.  

Please make sure you have the correct access rights                
and the repository exists.
Marquis answered 28/9, 2016 at 13:53 Comment(0)
Z
6

You could try finding out what your dokku server has already assigned as a url to your app and use that, this you can do with the command dokku domains:report, or you could just set a domain for your newly created application by using the command dokku domains:add blog example.com on the dokku server, then git remote add dokku <dokku-ssh-root>@example.com:blog on your devbox.

As an example git remote add dokku [email protected]:blog on one's the devbox

I hope this helps. See the dokku documentation for more information.

Zennie answered 10/8, 2018 at 9:13 Comment(1)
Thank you @Zennie although the question is not relevant anymore and I cannot validate your answer.Marquis

© 2022 - 2024 — McMap. All rights reserved.