run_unicorn.sh 364 B

1234567891011
  1. #!/bin/bash
  2. fw_depends mysql rvm ruby-2.1 nginx
  3. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' config/nginx.conf
  4. rvm ruby-$MRI_VERSION do bundle install --jobs=4 --gemfile=$TROOT/Gemfile --path=vendor/bundle
  5. nginx -c $TROOT/config/nginx.conf
  6. DB_HOST=${DBHOST} rvm ruby-$MRI_VERSION do bundle exec unicorn_rails -E production -c $TROOT/config/unicorn.rb &