Skip to content

Instantly share code, notes, and snippets.

@Ponf
Last active September 3, 2015 07:36
Show Gist options
  • Save Ponf/6b47b1d55273225c7fdc to your computer and use it in GitHub Desktop.
Save Ponf/6b47b1d55273225c7fdc to your computer and use it in GitHub Desktop.
setting up dokku:
ssh: ssh-add ~/.ssh/dokku-do
Enable swap:
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo nano /etc/fstab
add to bottom: /swapfile none swap sw 0 0
sudo sysctl vm.swappiness=10
sudo nano /etc/sysctl.conf
add to bottom: vm.swappiness=10
Updating dokku:
cd ~/dokku
git pull --tags origin master
sudo DOKKU_BRANCH=master make install
Updating buildsteps:
cd /tmp
git clone https://github.com/progrium/buildstep.git
cd buildstep
git pull origin master
sudo make build
Changing remote:
git remote -v
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
pushing http://thomastoye.be/2015/play-framework-cd/
DNS:
https://www.andrewmunsell.com/blog/dokku-tutorial-digital-ocean/
Static content:
https://github.com/florianheinemann/buildpack-nginx
IDEA:
http://stackoverflow.com/questions/24218341/how-to-run-play-framework-2-x-in-debug-mode-in-intellij-idea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment