mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
9 lines
191 B
Bash
Executable File
9 lines
191 B
Bash
Executable File
#!/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 "${@}"
|