A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -1,20 +1,23 @@
|
|||
#!/bin/bash
|
||||
#!/bin/ash
|
||||
|
||||
set -e
|
||||
|
||||
echo "1: ${1}"
|
||||
echo "2: ${2}"
|
||||
if [ -f tmp/pids/server.pid ]; then
|
||||
rm tmp/pids/server.pid
|
||||
fi
|
||||
|
||||
# Make the if statement match any invocation of the "rails server" command
|
||||
if [[ "${1}" == *rails ]] && ([ "${2}" == "server" ] || [ "${2}" == "s" ]); then
|
||||
echo "+ preparing database..."
|
||||
./bin/rails db:prepare
|
||||
echo "- preparing database done."
|
||||
|
||||
if [ ! -f /app/no_migrate ] && [ ! -v NO_MIGRATE ]; then
|
||||
echo "+ preparing database..."
|
||||
./bin/rails db:prepare
|
||||
echo "- preparing database done."
|
||||
if [ -n "$ASSETS_PATH" ]; then
|
||||
echo "+ copying assets..."
|
||||
cp -nr public/* $ASSETS_PATH
|
||||
echo "- copying assets done."
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# Execute the given or default command:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue