Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
| # config/initializers/web_console.rb | |
| WebConsoleBeforeAction = ->(controller) do | |
| controller.console if controller.params[:web_console] | |
| end | |
| ApplicationController.before_action(WebConsoleBeforeAction) if defined?(WebConsole) && Rails.env.development? | |
| # NOTE: | |
| # For security reasons only do this in development. |
| curl "http://gravatar.com/avatar/$(md5 -q -s myemail@example.com)" > avatar.png |
| # requires BSD sed | |
| namespace :whitespace do | |
| desc 'Removes trailing whitespace' | |
| task :cleanup do | |
| sh %{for f in `find . -type f | grep -v .git | grep -v ./vendor | grep -v ./tmp | egrep ".(rb|js|haml|html|css|sass)"`; | |
| do sed -i '' 's/ *$//g' "$f"; | |
| done}, {:verbose => false} | |
| puts "Task cleanup done" | |
| end |