mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
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:
parent
ec2b6cf22e
commit
36e29b82c8
1 changed files with 7 additions and 0 deletions
7
script/console
Executable file
7
script/console
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue