Skip to content

Instantly share code, notes, and snippets.

@kares
Last active October 2, 2015 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kares/2330267 to your computer and use it in GitHub Desktop.
Save kares/2330267 to your computer and use it in GitHub Desktop.
source 'https://rubygems.org'
gem 'rails', '~> 3.2.3'
# ...
platforms :jruby do
gem 'trinidad', '~> 1.4', :require => false
gem 'trinidad_mysql_dbpool_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