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

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.
7 lines
184 B
Bash
Executable file
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
|