Skip to content

Commit be3089c

Browse files
committed
Explicitly run db:seed on container boot to guarantee test user creation
1 parent 1f69b09 commit be3089c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ rm -f /home/notebookai/tmp/pids/server.pid
66

77
# Ensure the database is prepared (migrated & seeded) before starting the server
88
bundle exec rails db:prepare
9+
bundle exec rails db:seed
910

1011
# Then exec the container's main process (what's set as CMD in the Dockerfile).
1112
exec "$@"

0 commit comments

Comments
 (0)