Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Latest commit

 

History

History
11 lines (7 loc) · 984 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 984 Bytes

PgHero Solo

This repository is a containerized, standalone instance of the excellent PgHero engine. It allows you to pass a DATABASE_URL environment variable to run PgHero within Docker against your database without having to mount this inside your Rails application. It allows all the benefits of PgHero while allowing you to run a separate application instance safely behind your firewall without fear of accidently exposing it through your production Rails app.

This strategy is used at Yammer to run PgHero against each of our different shards.

This repository has an automated build on the public Docker hub. To demo this and run it on OS X with boot2docker installed, you can connect to a Homebrew-installed Postgres instance like this:

docker run -ti -e DATABASE_URL=postgres://[email protected]:5432/myapp_development -p 8080:8080 bmorton/pghero