tracks/script/server
Matt Rogers e4e6b78f91
Add a script for running a server
In addition to following the 'script to rule them all' pattern, this
makes it easier to bring up a rails server by abstracting all the docker
things away (of which there are quite a few) and will prevent changes to
the binstubs from being able to run a server for development purposes.
2018-07-21 10:21:54 -05:00

7 lines
184 B
Bash
Executable file

#!/bin/sh
export BIND_DOCKER_SERVICE_PORTS=1
appdir=$(cd $(dirname "$0")/.. && pwd)
[ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@
bin/rails server -b 0.0.0.0