$ heroku plugins:install heroku-repo
$ heroku repo:gc --app app-name
$ heroku repo:purge_cache --app app-name
setopt HIST_IGNORE_SPACE
$ inkscape --export-type=png --export-dpi=200 --export-background-opacity=0 file.svg
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.public_file_server.headers = {
'Cache-Control' => 'public, max-age=31536000',
# You need to enable this (or set it to your domain) for fonts to work
'Access-Control-Allow-Origin' => '*'
}
if ENV['ASSET_HOST'].present?
config.action_controller.asset_host = ENV['ASSET_HOST'] # 'https://cdn.example.com'
end
brew upgrade postgresql
brew postgresql-upgrade-database
dom_id(Post.find(12)) # => "post_23"
dom_id(Post.new) # => "new_post"
dom_id(Post.find(23), :edit) # => "edit_post_23"
dom_id(Post.new, :custom) # => "custom_post"
doc = <<-'SONG'
Business men, they drink my wine
#{person} dig my earth
None will level on the line
Nobody offered his word
Hey, hey
SONG
$ heroku run 'bundle exec rails console -- --nomultiline'