Skip to content

Instantly share code, notes, and snippets.

@pjvds
Created November 14, 2013 08:48
Show Gist options
  • Save pjvds/7463531 to your computer and use it in GitHub Desktop.
Save pjvds/7463531 to your computer and use it in GitHub Desktop.
Wercker.yml that generated a config/database.yml for rails
box: wercker/ruby
services:
- wercker/postgresql9.2
build:
steps:
- create-file:
filename: config/database.yml
content: |-
adapter: postgresql
encoding: utf8
database: <%= ENV['WERCKER_POSTGRESQL_DATABASE'] %>
username: <%= ENV['WERCKER_POSTGRESQL_USERNAME'] %>
password: <%= ENV['WERCKER_POSTGRESQL_PASSWORD'] %>
host: <%= ENV['WERCKER_POSTGRESQL_HOST'] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment