mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00

In addition to following the 'scripts to rule them all' pattern, this makes it easier to pull up a console by abstracting all the docker things away and will prevent a change to the binstubs from being able to run a rails console.
7 lines
170 B
Bash
Executable file
7 lines
170 B
Bash
Executable file
#!/bin/sh
|
|
|
|
appdir=$(cd $(dirname "$0")/.. && pwd)
|
|
[ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@
|
|
|
|
export RAILS_ENV='development'
|
|
bin/rails console
|