Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (19 sloc) 0.54 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/usr/bin/env ruby

$:.push File.expand_path('../../lib', __FILE__)

require 'rest-assured/config'
require 'uri'

# disable buffering to have log messages sent straight to Heroku’s logging infrastructure
$stdout.sync = true

db = URI.parse(ENV['DATABASE_URL'])

opts = {
      port: ENV['PORT'],
   adapter: 'postgresql',
    dbhost: db.host,
      user: db.user,
    dbpass: db.password,
  database: db.path[1..-1],
  encoding: 'utf8'
}

RestAssured::Config.build(opts)

require 'rest-assured/application'
RestAssured::Application.run!
Something went wrong with that request. Please try again.