Created
April 13, 2013 16:00
-
-
Save chsh/5378962 to your computer and use it in GitHub Desktop.
Run rails app on server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export APPT=$1 | |
source /etc/unicorn/$APPT.conf | |
echo App Target: $APPT | |
export RUBY_VERSION=ruby-$RUBY_VER | |
export GEM_HOME=/bundles/$RUBY_VER/ruby/1.9.1 | |
export PATH=/bundles/$RUBY_VER/bin:/opt/ruby/$RUBY_VER/bin:/usr/pgsql-9.2/bin:$PATH | |
export LANG=ja_JP.UTF-8 | |
export LC_ALL=ja_JP.UTF-8 | |
echo cd /apps/$APPT/current | |
cd /apps/$APPT/current | |
echo bundle exec $2 $3 $4 $5 $6 $7 $8 $9 | |
bundle exec $2 $3 $4 $5 $6 $7 $8 $9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment