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.
This commit is contained in:
Matt Rogers 2018-07-21 10:20:28 -05:00
parent ec2b6cf22e
commit 36e29b82c8
No known key found for this signature in database
GPG key ID: 605D017C07EB4316

7
script/console Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
appdir=$(cd $(dirname "$0")/.. && pwd)
[ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@
export RAILS_ENV='development'
bin/rails console