google-code-export / appengine-jruby

Automatically exported from code.google.com/p/appengine-jruby
0 stars 0 forks source link

flags to skip config.ru or GemFile #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With the Rails setup, we need to get rails gems, then generate the files 
before we can populate the final config.ru (or if fails), but we get errors.

Similar issue with the Gemfile, we may want to be able to run appcfg.rb
without attempting to generate a Gemfile (when missing) or running bundler.

appcfg.rb bundle --update .  # no need for config.ru

appcfg.rb run bin/rails .  # no need to generate missing Genfile and bundle

Original issue reported on code.google.com by mando.wo...@gmail.com on 17 Dec 2009 at 12:42

GoogleCodeExporter commented 9 years ago
When I start dev_appserver.rb, WEB-INF/web.xml was overwriten too.
I added servlet, filter, etc... but I lost these.

Original comment by sasaki.t...@gmail.com on 14 Jan 2010 at 7:06

GoogleCodeExporter commented 9 years ago
there is a way to add servler filters manually
http://fiddle-sticks.appspot.com/  # example

map '/info' do
  run JavaServlet.new('com.example.Info')
end

map '/admin' do
  use JavaServletFilter, 'com.example.AdminFilter', :wildcard => true
  run JavaServlet.new('com.example.AdminServlet', :wildcard => true)
end

map '/store' do
  use JavaServletFilter, 'com.example.StoreFilter', :name => 'StoreFilter'
  run JavaServlet.new('com.example.StoreServlet', :name => 'store')
end

Original comment by mando.wo...@gmail.com on 14 Jan 2010 at 7:17

GoogleCodeExporter commented 9 years ago
thanks, now I use this.

But anyone need to use security-constraint or other...
And web.xml does not have rack overhead. (it may very small.)

If I can write web.xml,
Can I create "lazy loading jruby/rails rack servlet" ?
When spining up, this servlet returns redirect response.
If loading is complete, requests is send to rack, jruby, rails,...
To do this, we need divide loading processes into many peaces.

Original comment by sasaki.t...@gmail.com on 15 Jan 2010 at 3:47