Run events system
Reset Postgres stats with:
SELECT pg_stat_statements_reset();Create deploy/.env file:
cp ./deploy/.env.example ./deploy/.envTo 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
rspecNow you can run it
makeFor 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:
- Admin panel http://localhost:3000/admin
- Email previews http://localhost:3000/rails/mailers
- 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
rbenvusing rbenv-installer: -
Then install Ruby
rbenv install 3.4.5
rbenv global 3.4.5