budget/bin/docker-entrypoint
Andrew Tomaka faef71fb9c
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
Attempt to add Docker (via Rails 7.1 file)
2023-03-08 19:35:40 -05:00

12 lines
252 B
Bash
Executable file

#!/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