Skip to content

Instantly share code, notes, and snippets.

@chsh
Created April 13, 2013 16:00
Show Gist options
  • Save chsh/5378962 to your computer and use it in GitHub Desktop.
Save chsh/5378962 to your computer and use it in GitHub Desktop.
Run rails app on server.
#!/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