-
-
Save BanzaiMan/8b637cc4b1bb069fe231 to your computer and use it in GitHub Desktop.
This file contains 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
alias bx='bundle exec' | |
RHC_USER=test@example.com | |
RHC_SERVER=######### | |
## create domain | |
bx bin/rhc domain create fooooooooooo -l $RHC_USERNAME --server $RHC_SERVER | |
# create app | |
bx bin/rhc app create rails -t ruby-1.9 -s --no-git --no-dns -l $RHC_USERNAME --server $RHC_SERVER | |
bx bin/rhc cartridge add -a rails mysql-5.1 -l $RHC_USERNAME --server $RHC_SERVER | |
# scale up | |
bx bin/rhc cartridge scale ruby-1.9 -a rails --min 3 -l $RHC_USERNAME --server $RHC_SERVER |
This file contains 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
# on devenv, set max gears | |
oo-admin-ctl-user -l test@example.com --setmaxgears 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist concerns https://bugzilla.redhat.com/show_bug.cgi?id=962432.
At the end of the steps above, we would have something like:
Notice that the directory structure (at that level, anyhow) of the 3 directories are identical.
Now, from a Rails app's root directory, set the remote
origin
appropriately, rungit push -f
.The directories would look like:
Only
rails-fooooooooooo
gets the app code.