tracks/script/console
Matt Rogers 36e29b82c8
Add a script to bring up a console
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.
2018-07-21 10:20:28 -05:00

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