maybe
maybe copied to clipboard
Add dotenv-rails gem to fix environment variable error for db setup
Environment variables were not read by db setup command.
rails db:setup --trace
** Invoke db:setup (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:load_config
** Execute db:create
connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied
Couldn't create 'maybe_development' database. Please check your configuration.
bin/rails aborted!
ActiveRecord::ConnectionNotEstablished: connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied (ActiveRecord::ConnectionNotEstablished)
@Shpigford
Environment variables were not read by db setup command.
rails db:setup --trace ** Invoke db:setup (first_time) ** Invoke db:create (first_time) ** Invoke db:load_config (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:load_config ** Execute db:create connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied Couldn't create 'maybe_development' database. Please check your configuration. bin/rails aborted! ActiveRecord::ConnectionNotEstablished: connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied (ActiveRecord::ConnectionNotEstablished)@Shpigford
I've just reported this error, thanks so much!
Environment variables were not read by db setup command.
rails db:setup --trace ** Invoke db:setup (first_time) ** Invoke db:create (first_time) ** Invoke db:load_config (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:load_config ** Execute db:create connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied Couldn't create 'maybe_development' database. Please check your configuration. bin/rails aborted! ActiveRecord::ConnectionNotEstablished: connection to server at "127.0.0.1", port 5432 failed: fe_sendauth: no password supplied (ActiveRecord::ConnectionNotEstablished)@Shpigford
I've just reported this error, thanks so much!
Resolves #335
Pointed out this issue on Discord earlier. I can confirm that this fixes it.