Browse Source

Sed /usr/local/ for padrino unicorn

- /usr/local/ in the nginx configuration changed out, so padrino-unicorn can pass the test.
Brittany Mazza 10 years ago
parent
commit
18236d264f
1 changed files with 2 additions and 0 deletions
  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 &