bundler/bundler-api-replay

Name: bundler-api-replay

Owner: Bundler

Description: Parse http log drains from bundler-api and replay traffic to another app.

Forked from: hone/bundler-api-replay

Created: 2016-05-10 20:23:14.0

Updated: 2016-05-19 12:53:56.0

Pushed: 2016-05-19 12:53:41.0

Homepage: null

Size: 55

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

bundler-api-replay

This project is a web app that receives syslog drains via HTTP and then it replays the traffic to other web apps.

Dependencies
Setup

First, you'll need to create a database to use and set the DATABASE_URL in your environment.

bundle install --binstubs bin/
bin/sequel -m db/migrations $DATABASE_URL

Next, we'll setup the environment for use with foreman. There's a sample env provided that you can just edit.

cp .env.sample .env
# edit .env

To start the web server we can just use foreman.

foreman start
Tests

The tests will require a separate test database. You'll need to create that and set TEST_DATABASE_URL in your environment and add it to your .env file. We'll need to run the migrations on the test database.

bin/sequel -m db/migrations $TEST_DATABASE_URL

We can now run the tests

foreman run bin/rake spec

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.