DEPRECATED
This repository has been deprecated and is no longer maintained
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 idGITHUB_SECRET- GitHub client secretSEGMENT_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
Set the following environment variables, in addition to the above:
- Database
DATABASE_ADAPTER(optional) - Database adapter to use. Default:postgresqlDATABASE_ENCODING(optional) - Encoding to use in database. Default:utf8DATABASE_RECONNECT(optional) - Automatically reconnect to the database? Default:trueDATABASE_NAME- Name of database to connect toDATABASE_POOL(optional) - Database connection pool size. Default:5DATABASE_USERNAME- Username to connect to database withDATABASE_PASSWORD- Password to connect to database withDATABASE_HOST- Host of database to connect toDATABASE_PORT- Port of database to connect to
- Web server
WEB_CONCURRENCY(optional) - Number of workers to run. Default:2MAX_THREADS(optional) - Maximum number of threads to use. Default:5RAILS_ENV(optional) - Environment to run the Rails server in. Default:development. Set toproductionif you want the app to run in production mode.RAILS_SERVE_STATIC_FILES- Set totrueif deploying with Docker imagePORT(optional) - Port to run server on. Default:3000
This repository is distributed under the MIT license found in the LICENSE file.
