-
-
Save demonbane/352400 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| run "cd #{release_path} && /usr/bin/env HOME=/home/borat bundle install" | |
| run "cd #{release_path} && /usr/bin/env HOME=/home/borat bundle lock" |
This file contains hidden or 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
| #run "cd #{release_path} && /usr/bin/env HOME=/home/borat bundle exec rake db:migrate --trace" |
This file contains hidden or 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
| ENV['RACK_ENV'] ||= 'development' | |
| begin | |
| require File.expand_path('../.bundle/environment', __FILE__) | |
| rescue LoadError | |
| require "rubygems" | |
| require "bundler" | |
| Bundler.setup | |
| end | |
| Bundler.require(:runtime) | |
| class ShowHeaders < Sinatra::Base | |
| get '/' do | |
| content = "" | |
| headers.each do |key, value| | |
| content << "#{key} -> #{value}\n" | |
| end | |
| content | |
| end | |
| end | |
| run ShowHeaders | |
| # vim:ft=ruby |
This file contains hidden or 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
| source :gemcutter | |
| group :runtime do | |
| gem 'sinatra', '~>1.0.0' | |
| gem 'rack', '~>1.0.0' | |
| end | |
| # vim:ft=ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment