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