Skip to content

Instantly share code, notes, and snippets.

@davidleandro
davidleandro / Gemfile
Created July 8, 2016 18:47
Add mailer to a Ruby on rails project
# --------------
# REMOVE ROADIE AND ADD PREMAILER
# --------------
- gem 'roadie', '~> 2.4.3'
+ gem 'premailer-rails'
heroku pg:backups capture --app APPNAME
curl -o latest.dump `heroku pg:backups public-url --app APPNAME`
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d DATABASE latest.dump
@exitmusic
exitmusic / database.yml
Created January 5, 2012 16:46 — forked from aokolish/database.yml
how to get postgresql working locally with rails
development:
adapter: postgresql
database: <db_name>
encoding: utf8
username: <username>
password:
host: localhost
# ...