Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serving static file for multiple web_apps #102

Open
patza opened this issue Jan 30, 2013 · 1 comment
Open

Serving static file for multiple web_apps #102

patza opened this issue Jan 30, 2013 · 1 comment
Milestone

Comments

@patza
Copy link

patza commented Jan 30, 2013

Hi,
When I'm deploying one application in production, my rails app can serve static files.

config/environments/production.rb :

config.serve_static_files = true

But when I'm deploying more than one apps, it does not work.
Here's is my trinidad config file :

Trinidad.configure do |config|
  config.port = 4242
  config.environment = 'production'
  config.jruby_min_runtimes = 1
  config.jruby_max_runtimes = 1
  config.jruby_compat_version = "1.9"
  config.reload_strategy = "default"
  config.http = {
    "acceptCount" => 100,
    "maxThreads" => 200,
    "maxKeepAliveRequest" => 100
  }
  config.web_apps = {
    :default => {
      :web_app_dir => 'retail',
      #:context_path => "/retail"
    },
    :faus => {
      :web_app_dir => 'faus',
      :context_path => "/faus",
      :root_dir => 'faus_app/faus'
    },
    :finance => {
      :web_app_dir => 'finance_app',
      :context_path => "finance"
    }
  }
end

is there a special config to get this working ?

Thank you !

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@kares
Copy link
Member

kares commented Mar 1, 2013

seems to work fine with a simple test I did - issue might be caused by jruby/jruby-rack#149

@kares kares modified the milestones: 1.4.6, 1.5.0 Mar 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants