Skip to content

vol1ura/Sat_9am_5km

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,948 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Quality&Tests CodeQL Code Coverage Maintainability

GPLv3 license Contributions Website

Sat 9am 5km

Run events system

Maintenance

Reset Postgres stats with:

SELECT pg_stat_statements_reset();

Development

Create deploy/.env file:

cp ./deploy/.env.example ./deploy/.env

To build project install Docker and execute

make build
make ash
# in docker container
rails credentials:edit --environment test
rails db:prepare
rails db:environment:set RAILS_ENV=test
# run tests
rspec

Now you can run it

make

For locale switching functionality set RAILS_DEVELOPMENT_HOSTS in deploy/.env. For example:

RAILS_DEVELOPMENT_HOSTS=local.app.ru,local.app.rs,local.app.by

and add these hosts to /etc/hosts to bind them to localhost

127.0.0.1       local.app.rs
127.0.0.1       local.app.by
127.0.0.1       local.app.ru

After that you can access the site with different locales:

Additional services

Server setup

To install web application on Ubuntu server run

  1. Install dependencies:
sudo apt-get install -y libyaml-dev
  1. Install Rust to build Ruby with YJIT on the next step
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Install or update rbenv using rbenv-installer:

  2. Then install Ruby

rbenv install 3.4.5
rbenv global 3.4.5

About

Parkrun like site with weekly saturday run-events results

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors