Skip to content

Instantly share code, notes, and snippets.

@zh012
Last active October 30, 2015 18:50
Show Gist options
  • Select an option

  • Save zh012/cf44e85836bfdda967a3 to your computer and use it in GitHub Desktop.

Select an option

Save zh012/cf44e85836bfdda967a3 to your computer and use it in GitHub Desktop.
dokku-alt on ec2

dokku-alt

Install dokku-alt on server

sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r)
sudo modprobe aufs
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/dokku-alt/dokku-alt/master/bootstrap.sh)" < /dev/null

Install dokku client locally

git clone git@github.com:progrium/dokku.git ~/.dokku
# add the following to either your
# .bashrc, .bash_profile, or .profile file
alias dokku='$HOME/.dokku/contrib/dokku_client.sh

Tips:

  • dokku pre-build hook changed to pre-build-buildpack

  • if you see "cannot allocate heap metadata", run following command on server

      echo 1 > /proc/sys/vm/overcommit_memory
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment