diff options
| author | mokha <mokha@cisco.com> | 2019-01-29 08:49:43 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2019-01-29 08:49:43 -0700 |
| commit | 70c09f472d7b996dfc11dac4bc3950351ef0e08d (patch) | |
| tree | a1dcbd640b0c73646da2831c24bd54eeac732c64 /bin | |
| parent | 35858253e869bd5b05dcf6b9483e85db700524b5 (diff) | |
start server using foreman
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/server | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,3 +1,17 @@ #!/bin/sh -bin/rails server +# bin/server: Launch the application and any extra required processes locally. + +set -e +cd "$(dirname "$0")/.." + +PORT=${PORT:=4000} +PROCFILE=Procfile + +export PORT + +test -z "$RACK_ENV" && RACK_ENV='development' +bin/update + +gem install foreman +foreman start -e /dev/null -f $PROCFILE |
