David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said 6 months ago on Omarchy :
Sorry Simon, I don't use Neovim so my understanding of its debugger tools is very limited.

David Kimura PRO said 5 months ago on Solid Queue :
It is a good job alternative and I think both are great choices. You may want to choose solid queue over another library because this is maintained by the rails core team so the compatibility with future rails upgrades may be better. However, good job has been battle tested and proven, and considered stable and personally, I feel the good job GUI is better than what solid queue offers.

David Kimura PRO said 5 months ago on Kamal Kitchen Sink :
This is what it looks like in the episode. You could also have an environment variable for the database URL and use that too instead of providing the username, password, host and port individually. 

default: &default
  adapter: postgresql
  encoding: unicode
  # For details on connection pooling, see Rails configuration guide
  # https://guides.rubyonrails.org/configuring.html#database-pooling
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  <% if ENV["DB_HOST"] %>
  host: <%= ENV["DB_HOST"] %>
  username: postgres
  password: postgres
  <% end %>

...

production:
  primary: &primary_production
    <<: *default
    database: example_production
    username: example
    host: 192.168.1.117
    password: <%= Rails.application.credentials.dig(:postgres, :password) %>
  cache:
    <<: *primary_production
    database: example_production_cache
    migrations_paths: db/cache_migrate
  queue:
    <<: *primary_production
    database: example_production_queue
    migrations_paths: db/queue_migrate
  cable:
    <<: *primary_production
    database: example_production_cable
    migrations_paths: db/cable_migrate

David Kimura PRO said 5 months ago on Kamal Kitchen Sink :
As long as the two droplets are able to communicate with each other (on the same VPC/network) it should work. Can you shell into the postgres server from the rails server's terminal? I am not sure of the firewalling that digital ocean does on the VMs, but the postgres port would need to be exposed to at least the rails VM.