Skip to content

kevinjanada/kevinjanada.com

Repository files navigation

README

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

  • ...

Production Setup

Simplified Production Configuration

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_store instead of solid_cache
  • Queue: Uses :async adapter instead of solid_queue
  • Cable: Uses async adapter instead of solid_cable

Running Production Mode Locally

To run the application in production mode locally:

  1. 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
    
  2. Prepare the database:

    RAILS_ENV=production bin/rails db:prepare
  3. Start the server:

    RAILS_ENV=production bin/rails server

Note: The app uses dotenv-rails to load environment variables from .env files.

Changes Made for Simplified Setup

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_store to :memory_store and queue_adapter to :async
  • config/recurring.yml - Commented out solid_queue recurring tasks
  • config/cable.yml - Production now uses async adapter instead of solid_cable
  • config/cache.yml - Commented out production.database
  • Gemfile - Added dotenv-rails gem for environment variable management

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors