Skip to content

Instantly share code, notes, and snippets.

@bradbajuz
Created January 19, 2017 15:09
Show Gist options
  • Save bradbajuz/165cd12ac3a0cdfcc7e2682bc69009c2 to your computer and use it in GitHub Desktop.
Save bradbajuz/165cd12ac3a0cdfcc7e2682bc69009c2 to your computer and use it in GitHub Desktop.
Setup Dokku App Script
#!/bin/bash
# init
function pause(){
read -p "Press [Enter] to continue . . ."
echo
}
printf "\e[1;31mCreate app: dokku apps:create appname\033[0m\n"
pause
dokku apps:create appname
pause
printf "\e[1;31mInstall db: dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres\033[0m\n"
pause
dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
pause
printf "\e[1;31mCreate db: dokku postgres:create db_appname\033[0m\n"
pause
dokku postgres:create db_appname
pause
printf "\e[1;31mLink db to app: dokku postgres:link db_appname appname\033[0m\n"
pause
dokku postgres:link db_appname appname
pause
printf "\e[1;31mApp enviromental variables: dokku config appname\033[0m\n"
pause
dokku config appname
pause
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment