Created
January 19, 2017 15:09
-
-
Save bradbajuz/165cd12ac3a0cdfcc7e2682bc69009c2 to your computer and use it in GitHub Desktop.
Setup Dokku App Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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