lecture-attendance-manager/bin/docker-entrypoint
Joshua Coles 735e16ed2c
All checks were successful
Build and Publish Docker Container / build (push) Successful in 5m28s
Fix permissions on docker-entrypoint
2023-10-06 23:08:31 +01:00

13 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