浏览代码

Sed /usr/local/ for padrino unicorn

- /usr/local/ in the nginx configuration changed out, so padrino-unicorn can pass the test.
Brittany Mazza 10 年之前
父节点
当前提交
18236d264f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      frameworks/Ruby/padrino/run_unicorn.sh

+ 2 - 0
frameworks/Ruby/padrino/run_unicorn.sh

@@ -10,6 +10,8 @@ else
 	source $HOME/.rvm/scripts/rvm
 fi
 
+sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' config/nginx.conf
+
 $NGINX_HOME/sbin/nginx -c $TROOT/config/nginx.conf
 
 DB_HOST=${DBHOST} rvm ruby-2.0.0-p0 do bundle exec unicorn -E production -c config/unicorn.rb &