Skip to content

Instantly share code, notes, and snippets.

@anildigital
Forked from kares/0_Gemfile.rb
Created April 17, 2012 19:28
Show Gist options
  • Save anildigital/2408445 to your computer and use it in GitHub Desktop.
Save anildigital/2408445 to your computer and use it in GitHub Desktop.
source 'https://rubygems.org'
gem 'rails', '3.2.3'
# ...
platforms :jruby do
gem 'trinidad', '~> 1.3', :require => false
gem 'jruby-rack', '1.1.1', :require => false # trinidad dep
gem 'trinidad_logging_extension', :require => false
end
gem 'thin', :require => nil, :platforms => :ruby # for dev
# ...
group :server do
platforms :jruby do
gem 'trinidad', :require => false
gem 'trinidad_daemon_extension', :require => false
end
end
namespace :trinidad do
task :start, :roles => :app do
trinidad = "trinidad -e production -d #{current_path}"
run "cd #{current_path} && jruby -S bundle exec #{trinidad}"
end
end
set :bundle_cmd, "jruby -S bundle"
set :bundle_without, [ :development, :test, :server ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment