Browse Source

remove bash_profile.sh from rails

Lita Gratrix 10 years ago
parent
commit
e190044cb7
2 changed files with 3 additions and 6 deletions
  1. 0 6
      frameworks/Ruby/rails/bash_profile.sh
  2. 3 0
      frameworks/Ruby/rails/run_unicorn.sh

+ 0 - 6
frameworks/Ruby/rails/bash_profile.sh

@@ -1,6 +0,0 @@
-#!/bin/bash
-
-export LC_ALL=en_US.UTF-8 
-export LANG=en_US.UTF-8
-
-export NGINX_HOME=${IROOT}/nginx

+ 3 - 0
frameworks/Ruby/rails/run_unicorn.sh

@@ -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 &