run_unicorn.sh 392 B

123456789101112
  1. #!/bin/bash
  2. fw_depends rvm nginx ruby-2.0
  3. sed -i 's| host:.*| host: '"${DBHOST}"'|g' config/database.yml
  4. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' config/nginx.conf
  5. nginx -c $TROOT/config/nginx.conf
  6. rvm ruby-$MRI_VERSION do bundle install --jobs=4 --gemfile=$TROOT/Gemfile --path=vendor/bundle
  7. rvm ruby-$MRI_VERSION do bundle exec unicorn -E production -c config/unicorn.rb &