From 3aaf06806fd59a31ae06879137d12d47f2cca3f5 Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Sat, 26 Jul 2025 00:24:23 +0200 Subject: [PATCH] Update Contributing section regarding gems and assets --- README.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 17afff4..e26d066 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,21 @@ TODO: add sample configuration Contributing ------------ +### Gems + +Apart from database adapter, install development and testing gems: + + bundle config --local with mysql development test + +### Configuration + +If you have previously precomiled assets for production environment, you should +clean them for development. Otherwise, if precompiled assets are available, +they will be served - even if they no longer match the original (uncompiled) +assets. + + bundle exec rails assets:clean + ### Database Grant database user privileges for development and test environments, @@ -131,7 +146,6 @@ possibly with different Ruby versions: mysql> grant all privileges on `fixinme-%`.* to `fixinme-dev`@localhost; mysql> flush privileges; - ### Development environment Starting application server in development environment: @@ -140,8 +154,7 @@ Starting application server in development environment: For running rake tasks, prepend command with environment: - RAILS_ENV="development" bundle exec rake ... - + RAILS_ENV=development bundle exec rails ... ### Running tests @@ -159,12 +172,10 @@ Tests need to be run from within toplevel application directory: bundle exec rails test test/system/users_test.rb --seed 1234 - ### Icons Pictogrammers Material Design Icons: https://pictogrammers.com/library/mdi/ - ### Rake tasks Exporting default settings defined in application to seed file (e.g. to send as