This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
This application uses a simplified production setup without the default Rails 8 solid_* gems:
- Database: Single primary database (multi-db setup for cache/queue/cable has been disabled)
- Cache: Uses
:memory_storeinstead of solid_cache - Queue: Uses
:asyncadapter instead of solid_queue - Cable: Uses
asyncadapter instead of solid_cable
To run the application in production mode locally:
-
Set up environment variables in
.env.production:RAILS_ENV=production PG_USER=your_db_user PG_PASSWORD=your_db_password PG_HOST=localhost PG_PORT=5432 SECRET_KEY_BASE=your_secret_key -
Prepare the database:
RAILS_ENV=production bin/rails db:prepare
-
Start the server:
RAILS_ENV=production bin/rails server
Note: The app uses dotenv-rails to load environment variables from .env files.
The following changes were made to disable the solid_* gems and multi-database setup:
- config/database.yml - Commented out cache, queue, and cable database configurations
- config/environments/production.rb - Changed
cache_storeto:memory_storeandqueue_adapterto:async - config/recurring.yml - Commented out solid_queue recurring tasks
- config/cable.yml - Production now uses
asyncadapter instead ofsolid_cable - config/cache.yml - Commented out production.database
- Gemfile - Added
dotenv-railsgem for environment variable management