- install
brew update
brew install redis
require 'net/http' | |
require 'uri' | |
uri = URI("http://example.local/file") | |
retries = 0 | |
begin | |
Net::HTTP.get_response(uri) | |
rescue SocketError, SystemCallError, Net::HTTPBadResponse | |
retries += 1 |
# Git aliases | |
alias gg="git" | |
alias ss="git status" | |
alias gf="git fetch" | |
alias gfo="git fetch origin" | |
alias gb="git branch" | |
alias gad="git add" | |
alias gada="git add ." | |
alias gs="git status" | |
alias df="git diff" |
git config user.email '[email protected]'
git config user.name 'Masroor Hussain'
heroku restart -a app_name
heroku pg:reset DATABASE -a app_name
(no need to change the DATABASE
)heroku run rake db:migrate -a app_name
heroku run rake db:seed -a app_name
(if you have seed)One liner
heroku restart -a app_name; heroku pg:reset DATABASE -a app_name --confirm APP-NAME; heroku run rake db:migrate -a app_name