Skip to content

Commit cb555f5

Browse files
committed
Add TEST_DATABASE_URL for Release
`make release` was failing with: Mysql2::Error::ConnectionError: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' in the `env RAILS_ENV=test bin/rake db:prepare` step as it couldn't connect to the release_test DB because it didn't exist. This ensures the DB is created and we can connect to it with correct credentials.
1 parent 95304ee commit cb555f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/release/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ services:
2626
environment:
2727
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: "true"
2828
DATABASE_URL: "mysql2://root:root@mysql-8/release_development"
29+
TEST_DATABASE_URL: "mysql2://root:root@mysql-8/release_test"
2930

3031
release-app:
3132
<<: *release

0 commit comments

Comments
 (0)