Skip to content

Commit 71fd543

Browse files
authored
Merge pull request rails#49460 from matteeyah/main
Check first two arguments in docker entrypoint
2 parents a9fa57e + 7aaea30 commit 71fd543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/docker-entrypoint.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<% unless skip_active_record? -%>
44
# If running the rails server then create or migrate existing database
5-
if [ "${*}" == "./bin/rails server" ]; then
5+
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
66
./bin/rails db:prepare
77
fi
88

0 commit comments

Comments
 (0)