Sha256: 62d9bb7af462f9df63f026bddf952933fee65388aec6c398692ec44b9bacac2a

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

#!/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,
    dbport: db.port,
  database: db.path[1..-1],
  encoding: 'utf8'
}

RestAssured::Config.build(opts)

require 'rest-assured/application'
RestAssured::Application.run!(:threaded => false)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rest-assured-2.0.0 bin/heroku_runner
rest-assured-1.2.2 bin/heroku_runner
rest-assured-1.2.1 bin/heroku_runner