Skip to content

Commit

Permalink
Hotfix: Add docker-entrypoint.sh from rails 7.1 boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
jbakerdev committed Oct 11, 2023
1 parent 89835ee commit a1b4769
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/docker-entrypoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash -e

# If running the rails server then create or migrate existing database
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
./bin/rails db:prepare
fi

exec "${@}"

0 comments on commit a1b4769

Please sign in to comment.