|
@@ -1,4 +1,5 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
|
+export NGINX_HOME=${IROOT}/nginx
|
|
|
|
|
|
sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' config/nginx.conf
|
|
sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' config/nginx.conf
|
|
|
|
|
|
@@ -12,6 +13,8 @@ else
|
|
source $HOME/.rvm/scripts/rvm
|
|
source $HOME/.rvm/scripts/rvm
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' config/nginx.conf
|
|
|
|
+
|
|
$NGINX_HOME/sbin/nginx -c $TROOT/config/nginx.conf
|
|
$NGINX_HOME/sbin/nginx -c $TROOT/config/nginx.conf
|
|
|
|
|
|
DB_HOST=${DBHOST} rvm 2.1.2 do bundle exec unicorn_rails -E production -c $TROOT/config/unicorn.rb &
|
|
DB_HOST=${DBHOST} rvm 2.1.2 do bundle exec unicorn_rails -E production -c $TROOT/config/unicorn.rb &
|