Update Contributing section regarding gems and assets

This commit is contained in:
cryptogopher 2025-07-26 00:24:23 +02:00
parent ef0f3cbae3
commit 3aaf06806f

View File

@ -121,6 +121,21 @@ TODO: add sample configuration
Contributing 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 ### Database
Grant database user privileges for development and test environments, 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> grant all privileges on `fixinme-%`.* to `fixinme-dev`@localhost;
mysql> flush privileges; mysql> flush privileges;
### Development environment ### Development environment
Starting application server in 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: For running rake tasks, prepend command with environment:
RAILS_ENV="development" bundle exec rake ... RAILS_ENV=development bundle exec rails ...
### Running tests ### 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 bundle exec rails test test/system/users_test.rb --seed 1234
### Icons ### Icons
Pictogrammers Material Design Icons: https://pictogrammers.com/library/mdi/ Pictogrammers Material Design Icons: https://pictogrammers.com/library/mdi/
### Rake tasks ### Rake tasks
Exporting default settings defined in application to seed file (e.g. to send as Exporting default settings defined in application to seed file (e.g. to send as