docker-compose: do db:seed before server start
This is needed to create DanbooruBot and enable uploads, among other things.
This commit is contained in:
@@ -39,7 +39,7 @@ services:
|
|||||||
- /tmp
|
- /tmp
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
command: ["bash", "-c", "bin/rails db:prepare && bin/rails server -b 0.0.0.0"]
|
command: ["bash", "-c", "bin/rails db:prepare && bin/rails db:seed && bin/rails server -b 0.0.0.0"]
|
||||||
|
|
||||||
cron:
|
cron:
|
||||||
user: root
|
user: root
|
||||||
|
|||||||
Reference in New Issue
Block a user