Attempt to add Docker (via Rails 7.1 file)
This commit is contained in:
parent
fd75a7c6ff
commit
faef71fb9c
4 changed files with 138 additions and 37 deletions
12
bin/docker-entrypoint
Executable file
12
bin/docker-entrypoint
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
# Create new or migrate existing database
|
||||
./bin/rails db:prepare
|
||||
|
||||
# Start the server by default
|
||||
exec bin/rails server
|
||||
else
|
||||
# Allow other commands, like console or runner, to be called
|
||||
exec bin/rails "$@"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue