Reset Postgres stats with:
SELECT pg_stat_statements_reset();
Create deploy/.env
and config/database.yml
files:
cp ./deploy/.env.example ./deploy/.env
cp ./config/database.yml.example ./config/database.yml
To build project install Docker
and execute
make build
make ash
# in docker container
rails db:prepare
rake db:parse_parkrun_codes[kuzminki_db.csv]
rails db:environment:set RAILS_ENV=test
# add secrets
rails credentials:edit --environment test
# run tests
rspec
Now you can run it
make
- Site http://localhost:3000
- Admin panel http://localhost:3000/admin
- Email previews http://localhost:3000/rails/mailers
- Database panel http://localhost:3003
- Bug tracker Rollbar.com
- Sidekiq WebUI for admin users
- Rails Performance dev or prod for admin users
- Postgres Performance dev or prod
- Uptime monitor UptimeRobot