diff --git a/config/server.sh b/config/server.sh index 73fe1dcd1..fd15d22dc 100644 --- a/config/server.sh +++ b/config/server.sh @@ -4,9 +4,10 @@ THIN_PORT=3000 SOCKET_PORT=8080 -# See thin -h for possible values. -DEFAULT_THIN_ARGS="-p $THIN_PORT" +# Choose one mode by uncommenting +export RAILS_ENV='development' +#export RAILS_ENV='production' +#export RAILS_ENV='test' -# Uncomment to run in production/test mode. -# DEFAULT_THIN_ARGs="$DEFAULT_THIN_ARGS -e production" -# DEFAULT_THIN_ARGs="$DEFAULT_THIN_ARGS -e test" +# See thin -h for possible values. +DEFAULT_THIN_ARGS="-p $THIN_PORT -e $RAILS_ENV"