Tweaked nginx and php for performance

This commit is contained in:
Ric Harvey
2015-01-28 11:33:00 +00:00
parent 17737ab026
commit 4bab9195d4
4 changed files with 29 additions and 12 deletions

View File

@@ -10,6 +10,11 @@ if [ ! -z "$GIT_REPO" ]; then
fi
fi
# Tweak nginx to match the workers to cpu's
procs=$(cat /proc/cpuinfo |grep processor | wc -l)
sed -i -e "s/worker_processes 5/worker_processes $procs/" /etc/nginx/nginx.conf
# Very dirty hack to replace variables in code with ENVIRONMENT values
for i in $(env)