- Generate Rails 8.1 app with PostgreSQL and TailwindCSS - Add docker-compose.yml (postgres:17) for local database - Configure database.yml to connect to Dockerized Postgres via env vars - Add Pages#home root route, application layout, and navbar partial
9 lines
203 B
Bash
Executable File
9 lines
203 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# If running the rails server then create or migrate existing database
|
|
if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
|
|
./bin/rails db:prepare
|
|
fi
|
|
|
|
exec "${@}"
|