I'm trying to deploy my application which is located on my local git repo to my dokku instance on digitalocean.
Zone file
$ORIGIN mydomain.com.
$TTL 1800
...
mydomain.com. 1800 IN A 11.22.33.44
www.mydomain.com. 1800 IN CNAME mydomain.com.
*.mydomain.com. 1800 IN A 11.22.33.44
test.mydomain.com. 1800 IN A 11.22.33.44
I intend to deploy my app on test.mydomain.com
dokku setup
I used the dokku image on digitalocean to setup the server, which currently runns on dokku v0.4.15
, and tried to deploy my app according to the guide which is obviousely obsolete, however, I didn't find a more recent one.
ssh setup
I also set up the SSH keys and config file, so I'm able to log in to my dokku instance over SSH for both users root and dokku:
ssh {username}@test.localhome.ch
// works
local ssh config file
Host mydomain.com test.mydomain.com
HostName 11.22.33.44
IdentityFile ~/.ssh/mydomain
PreferredAuthentications publickey
deployment
When I try to deploy my git repo:
git remote add dokku [email protected]:test
git push dokku master
it would throw me
fatal: 'test' 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.
What did I miss?
Edit 1
I also ssh'ed into the server and added the dokku app
ssh [email protected]
dokku apps:create test
The app seems to have been added correctly server-side..
dokku@mydomain:~$ dokku apps
=====> My Apps
test
.. however, the push is still failing.
authorized_hosts
before going through the setup and that screwed things up. I used your comments as a hint and was able to remove the one that was initially. Now it is running through the custom command as intended. Thanks! – Gamopetalous