-
-
Save anildigital/2408445 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
| 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 |
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
| # ... | |
| group :server do | |
| platforms :jruby do | |
| gem 'trinidad', :require => false | |
| gem 'trinidad_daemon_extension', :require => false | |
| end | |
| end |
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
| 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 |
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
| 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