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
- Active Storage Dashboard dev or prod
- Uptime monitor UptimeRobot
To install web application on Ubuntu server run
- Install dependencies:
sudo apt-get install -y libyaml-dev
- Install Rust to build Ruby with YJIT on the next step
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Install or update
rbenv
using rbenv-installer: -
Then install Ruby
rbenv install 3.4.5
rbenv global 3.4.5