Skip to content

Instantly share code, notes, and snippets.

View hendrikbeck's full-sized avatar

Hendrik Beck hendrikbeck

View GitHub Profile
@hendrikbeck
hendrikbeck / <environment>.rb
Created September 30, 2013 05:29
Email Configuration for Amazon SES in Ruby on Rails
ActionMailer::Base.smtp_settings = {
:address => 'email-smtp.us-east-1.amazonaws.com',
:port => 25,
:authentication => 'login',
# The following 2 of course shouldn't be in here. When you open SES on the AWS Mangaement Console, they
# provide a link to create STMP users within Amazon. Just follow that and you'll get username and password.
:user_name => ENV['EMAIL_USERNAME'],
:password => ENV['EMAIL_PASSWORD'],
:domain => 'mysquar.com',
:enable_starttls_auto => true
@hendrikbeck
hendrikbeck / circle.yml
Created September 14, 2013 10:27
Rails configuration to test and deploy to Heroku via CircleCI
database:
override:
- mkdir -p config
- |
echo 'test:
host: localhost
username: ubuntu
database: circle_ruby_test
adapter: postgresql
' > config/database.yml