Skip to content

Instantly share code, notes, and snippets.

@EricaJoy
Created March 20, 2015 08:49
Show Gist options
  • Save EricaJoy/db64941f9aa57ae57883 to your computer and use it in GitHub Desktop.
Save EricaJoy/db64941f9aa57ae57883 to your computer and use it in GitHub Desktop.
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