I have the following setup -
- Created a new rails api only app with postgres
- Created a dockerfile and dockercompose and the app works fine
- Initialized a new app to deploy via flyctl launch
- Ran fly deploy
I get the following error
#20 2.459 rails aborted! #20 2.459 ActiveRecord::ConnectionNotEstablished: could not connect to server: No such file or directory #20 2.459 Is the server running locally and accepting #20 2.459 connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? #20 2.459 /app/vendor/bundle/ruby/3.0.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql_adapter.rb:87:in
rescue in new_client’
`