I hereby claim:
- I am dinhxuanvu on github.
- I am vudinh (https://keybase.io/vudinh) on keybase.
- I have a public key whose fingerprint is 616E 3E84 E0FC D088 5C50 26F4 14EA C12B 195A 1601
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Save fixdns.rb to your devenv, e.g to ~. Run it like this:
/var/www/openshift/broker/script/rails r ~/fixdns.rb <login>
Also, run this to fix /etc/openshift/port-proxy.cfg:
ip=$(facter ipaddress)
sed -i "s,bind 10\.[0-9.]\+:,bind $ip:," /etc/openshift/port-proxy.cfg
| mkdir ~/app-root/data/tmp | |
| mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --all-databases > ~/app-root/data/tmp//all.sql |
| # Helper function for our fancy prompt. | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| # Fancy prompt function | |
| function proml { | |
| local BLUE="\[\033[0;34m\]" | |
| local RED="\[\033[0;31m\]" | |
| local LIGHT_RED="\[\033[1;31m\]" |