zachlatta / packrat

Where we hoard all our data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Packrat Circle CI

Getting Started

Packrat Icon

Register a GitHub application with the following fields:

  • Homepage URL - http://localhost:3000
  • Application callback URL - http://localhost:3000/club_members/auth/github/callback

Add the following environment variables to a file called .env:

  • GITHUB_ID - GitHub client id
  • GITHUB_SECRET - GitHub client secret
  • SEGMENT_WRITE_KEY - Segment write key

Launch Packrat:

docker-compose up

You may need access to the Bootstrap theme we bought for Packrat, which is in a private submodule. Please create an issue if you need access and we'll work with you to make that happen.

Set up database:

docker-compose run web rake db:schema:load

Populate database with sample data (this may take a while):

docker-compose run web rake db:populate

Deployment

Set the following environment variables, in addition to the above:

  • Database
    • DATABASE_ADAPTER (optional) - Database adapter to use. Default: postgresql
    • DATABASE_ENCODING (optional) - Encoding to use in database. Default: utf8
    • DATABASE_RECONNECT (optional) - Automatically reconnect to the database? Default: true
    • DATABASE_NAME - Name of database to connect to
    • DATABASE_POOL (optional) - Database connection pool size. Default: 5
    • DATABASE_USERNAME - Username to connect to database with
    • DATABASE_PASSWORD - Password to connect to database with
    • DATABASE_HOST - Host of database to connect to
    • DATABASE_PORT - Port of database to connect to
  • Web server
    • WEB_CONCURRENCY (optional) - Number of workers to run. Default: 2
    • MAX_THREADS (optional) - Maximum number of threads to use. Default: 5
    • RAILS_ENV (optional) - Environment to run the Rails server in. Default: development. Set to production if you want the app to run in production mode.
    • RAILS_SERVE_STATIC_FILES - Set to true if deploying with Docker image
    • PORT (optional) - Port to run server on. Default: 3000

License

This repository is distributed under the MIT license found in the LICENSE file.

About

Where we hoard all our data

License:MIT License


Languages

Language:Ruby 72.7%Language:HTML 21.6%Language:CSS 3.7%Language:JavaScript 1.2%Language:CoffeeScript 0.9%