Skip to content

Instantly share code, notes, and snippets.

@portokallidis
Created August 22, 2014 00:35
Show Gist options
  • Save portokallidis/105db1614bd2c55e060b to your computer and use it in GitHub Desktop.
Save portokallidis/105db1614bd2c55e060b 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 "apps.3ktservices.com" > /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