Created
March 5, 2014 16:30
-
-
Save berinle/9370694 to your computer and use it in GitHub Desktop.
Digital Ocean + Dokku Cheats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| == Deploying on digital ocean with the dokku image | |
| ### Read this great article | |
| https://www.andrewmunsell.com/blog/dokku-tutorial-digital-ocean | |
| ### Make sure you update the buildstep *on the remote box* by doing this: | |
| See https://github.com/progrium/dokku#upgrading[Uprading dokku set up] | |
| ==== | |
| - git clone https://github.com/progrium/buildstep.git | |
| - cd buildstep | |
| - sudo make build | |
| ==== | |
| ### Git push rights to other boxes that weren't set up at the time of building the box | |
| From your local box (the box that needs access) | |
| ==== | |
| cat ~/.ssh/id_rsa.pub | ssh root@<ip-address> "sudo sshcommand acl-add dokku root" | |
| ==== | |
| ### Adding a push URL for dokku | |
| `git remote add dokku *dokku@*<ip-address>:<app-name>` | |
| ### Adding SSL/TLS to your application | |
| - On the *remote box*, make a directory under /home/git/$APP/ssl | |
| - Copy the files +*server.crt*+ and +*server.key*+ to it | |
| - Redeploy the application via `git push dokku <branch>:master` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment