set tmp_dir in script/server

This commit is contained in:
Konstantin Haase 2015-10-09 09:19:07 +02:00
parent 16c871d740
commit 6f0a42abee
2 changed files with 7 additions and 7 deletions

View File

@ -3,13 +3,6 @@
# make sure we kill all child processes once done
trap '{ pkill -P $$; rm -f config/nginx.conf; exit 255; }' EXIT
if [[ $RACK_ENV == "production" ]]; then
export tmp_dir=/tmp
else
mkdir -p tmp
export tmp_dir=./tmp
fi
if [ -f bin/nginx ]; then
nginx=bin/nginx
else

View File

@ -13,6 +13,13 @@ echo "port=$PORT rack_env=$RACK_ENV web_concurrency=$WEB_CONCURRENCY nginx_worke
ruby="ruby -I lib -S"
bexc="$ruby bundle exec"
if [[ $RACK_ENV == "production" ]]; then
export tmp_dir=/tmp
else
mkdir -p tmp
export tmp_dir=./tmp
fi
cmd="unicorn config.ru -E $RACK_ENV -c config/unicorn.rb"
[[ $RACK_ENV == "development" ]] && cmd="rerun -b -- $cmd"
cmd="bin/start-nginx $bexec je $cmd"