Skip to content

Conversation

michaelvips
Copy link

Add advise for add the same database name of the docker-compose.yml to the .env file to prevent the deploy error.

By default on the .env file the POSTGRES_DATABASE variable is commented what causes the deploy command "docker compose run --rm rails bundle exec rails db:chatwoot_prepare" to create a default database with the name "chatwoot_production" which is different from the one in the compose file "chatwoot"

"We could not find your database: chatwoot_production. Available database configurations can be found in config/database.yml."

Add advise for add the same database name of the docker-compose.yml to the .env file to prevent the deploy error.

By default on the .env file the POSTGRES_DATABASE variable is commented what causes the deploy command "docker compose run --rm rails bundle exec rails db:chatwoot_prepare" to create a default database with the name "chatwoot_production" which is different from the one in the compose file "chatwoot"

"We could not find your database: chatwoot_production. Available database configurations can be found in config/database.yml."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant