Skip to content

Instantly share code, notes, and snippets.

@thiagochirana
Created March 8, 2025 04:26
Show Gist options
  • Save thiagochirana/0a403f83a4b7180bd342d4421fd91681 to your computer and use it in GitHub Desktop.
Save thiagochirana/0a403f83a4b7180bd342d4421fd91681 to your computer and use it in GitHub Desktop.
How to configure Solid Cable, Solid Cache and Solid Queue in Development enviroment
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: <%= ENV.fetch("DB_USER", "curumin") %>
password: <%= ENV.fetch("DB_PASS", "curumin") %>
host: <%= ENV.fetch("DB_HOST", "localhost") %>
port: <%= ENV.fetch("DB_PORT", 5432) %>
development:
primary:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_dev
cache:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_dev_cache
migrations_paths: db/cache_migrate
queue:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_dev_queue
migrations_paths: db/queue_migrate
cable:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_dev_cable
migrations_paths: db/cable_migrate
test:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_test
production:
primary:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_prod
cache:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_prod_cache
migrations_paths: db/cache_migrate
queue:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_prod_queue
migrations_paths: db/queue_migrate
cable:
<<: *default
database: <%= ENV.fetch("DB_NAME", "rails_8_app") %>_prod_cable
migrations_paths: db/cable_migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment