== Welcome to the Rulebook Application.
{}[https://circleci.com/gh/rdunlop/unicycling-rulebook] {}[https://gemnasium.com/rdunlop/unicycling-rulebook]
== Dependencies
This application depends on the following services:
brew install redis
== Set the configuration variables (for local work)
echo "RACK_ENV=development" > .env
echo "PORT=9292" >> .env
cp config/eye.yml.template config/secrets.yml.template config/secrets.yml
Open secrets.yml:
update the mail settings to match your mail settings
Set the code for creation of new rulebooks
We recommend running development within a docker environment.
Benefits:
To do this:
./docker-setup.sh
to set up some filesdocker
and docker-compose
.docker-compose up
docker-compose exec app bundle exec rake db:create db:schema:load
docker-compose run app bundle exec rake db:create db:schema:load
Copy `config/database_template.yml` to `config/database.yml` and make
any necessary adjustments for your local environment.
== Set up the local database
cd unicycling-rulebook
bundle
rake db:create
rake db:schema:load
== Start the local server
bundle exec unicorn
Browse to http://localhost:9292
= Log Rotation settings:
It is assumed that the server is running logrotate.
In order to have the production logs backed up in a rotating basis, install the logrotation file server_config/unicorn-unicycling-rulebook-logs
into the /etc/logrotate.d/
directory.