Created
March 20, 2015 08:49
-
-
Save EricaJoy/db64941f9aa57ae57883 to your computer and use it in GitHub Desktop.
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
wget https://rubygems.org/downloads/bundler-1.8.5.gem | |
echo 'source "https://rubygems.org" | |
gem "rack" | |
gem "rdiscount" | |
gem "sinatra" | |
gem "unicorn"' > $WORKSPACE/Gemfile | |
export GEM_HOME=$WORKSPACE/vendor/cache | |
/opt/chef/embedded/bin/bundle package --no-install --gemfile $WORKSPACE/Gemfile | |
echo ' | |
gem "kgio" | |
gem "rack" | |
gem "rack-protection" | |
gem "raindrops" | |
gem "rdiscount" | |
gem "sinatra" | |
gem "tilt" | |
gem "unicorn" | |
' > $WORKSPACE/Gemfile | |
echo '#!/bin/bash | |
mkdir .bundle | |
sudo gem install bundler-1.8.5.gem | |
bundle install --local | |
sleep 10 | |
rackup' > $WORKSPACE/setup.sh | |
chmod 755 $WORKSPACE/setup.sh | |
tar -zcvf krecipec.tar.gz Gemfile bundler-1.8.5.gem vendor views public config.ru README setup.sh unicorn.conf.rb app.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment