Skip to content

Instantly share code, notes, and snippets.

@portokallidis
Created August 22, 2014 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save portokallidis/0883cdf9a0fb9809ab6e to your computer and use it in GitHub Desktop.
Save portokallidis/0883cdf9a0fb9809ab6e to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-get update
apt-get -y dist-upgrade
# Install dokku
# Has to be ran twice for success, not sure why
wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash
wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash
# Update VHOST
echo "ares.cu.cc" > /home/dokku/VHOST
# Update dokku
cd /home/dokku
git pull origin master
make install
cd ~/
# Update buildstep
git clone https://github.com/progrium/buildstep.git
cd buildstep
# sites that needed php stopped working for me after this commit
# Commit out this line to use the most resent version of buildstep
git checkout 90aa814665815ddcbd72d0a8ace01be2978aa11a
make build
cd ..
rm -rf buildstep
# Install plugins
git clone https://github.com/rlaneve/dokku-link.git /var/lib/dokku/plugins/link
dokku plugins-install
git clone https://github.com/mordred/dokku-redirects-plugin.git /var/lib/dokku/plugins/redirects-plugin
# git clone https://github.com/jlachowski/dokku-rabbitmq-single-plugin.git /var/lib/dokku/plugins/rabbitmq
git clone https://github.com/jezdez/dokku-redis-plugin.git /var/lib/dokku/plugins/redis
git clone https://github.com/jeffutter/dokku-mongodb-plugin.git /var/lib/dokku/plugins/mongodb
git clone https://github.com/scottatron/dokku-rebuild /var/lib/dokku/plugins/rebuild
dokku plugins-install
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment