Skip to content

Commit e884986

Browse files
init all dbs
1 parent 0fbbd3b commit e884986

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ services:
7171

7272
init:
7373
<<: *services-app
74-
command: rails assets:precompile db:await db:setup
74+
command:
75+
- sh
76+
- -c
77+
- |
78+
set -e
79+
RAILS_ENV=production rails assets:precompile db:await db:setup
80+
RAILS_ENV=test rails db:setup
7581
depends_on:
7682
db:
7783
condition: service_healthy

0 commit comments

Comments
 (0)