|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Re: Rails and JRubyOn Fri, Jul 17, 2009 at 1:04 PM, James Herdman<james.herdman@...> wrote:
> Okay, so I'm working on this puppy a bit as of late and have decided to do > the Apache/Glassfish gem combo for the time being. > I'm a little stuck. What I'm > envisioning the Apache/Glassfish solution as a stop gap until I can deploy a full Glassfish-based stack. What I'm hoping to do is leverage the Apache instance I have running with mod_rails and have some requests proxy back to Glassfish. > Has any one else had any luck with such a solution? Right now, it seems like > the requests that should be going back to my app are being ignored. Here's > my VHOST file: Were you able to figure this out? It seems like it's an Apache question, but I know I've fronted Glassfish gem with Apache and it works great. My vhost config was not very complicated though. - Charlie --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyJames are you hitting your app at your viritaulhostname/my_app in the
browser? Your ProxyPass is expecting /my_app in the path otherwise you might want to try ProxyPass / http://localhost:9000 ProxyPassReverse / http://localhost:9000 On Tue, Jul 21, 2009 at 5:28 PM, Charles Oliver Nutter<headius@...> wrote: > On Fri, Jul 17, 2009 at 1:04 PM, James Herdman<james.herdman@...> wrote: >> Okay, so I'm working on this puppy a bit as of late and have decided to do >> the Apache/Glassfish gem combo for the time being. >> I'm a little stuck. What I'm >> envisioning the Apache/Glassfish solution as a stop gap until I can deploy a full Glassfish-based stack. What I'm hoping to do is leverage the Apache instance I have running with mod_rails and have some requests proxy back to Glassfish. >> Has any one else had any luck with such a solution? Right now, it seems like >> the requests that should be going back to my app are being ignored. Here's >> my VHOST file: > > Were you able to figure this out? It seems like it's an Apache > question, but I know I've fronted Glassfish gem with Apache and it > works great. My vhost config was not very complicated though. > > - Charlie > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyHi Charles!
I'm most of the way there. Here's what my VHOST template looks like in my Capistrano recipe: <VirtualHost *:80> DocumentRoot #{current_path}/public
ProxyPass #{context} http://localhost:#{deploy_port} ProxyPassReverse #{context} http://localhost:#{deploy_port} ProxyPass #{context}/images ! ProxyPass #{context}/javascripts !
ProxyPass #{context}/stylesheets ! <Directory #{current_path}/public> Options FollowSymLinks AllowOverride All Order allow,deny
Allow from all
PassengerEnabled Off # required if you have mod_rails apps running with the same Apache </Directory> </VirtualHost> So, this clearly means I'm defining a 'context' variable in my deploy.rb file. 'context' can be thought of as the ActionController::Base.relative_url_root value, if any. For most apps, this would just be "/".
I'm also defining a "deploy_port" value. This is a weakness of a multi-app environment. Knowing which port to use could get a little political. I'm working on some Capistrano tasks to deploy this stuff all automatically, but I'm running into trouble. Namely, Capistrano works by passing in an command to SSH. This means it doesn't get a legit login shell, which means JRuby isn't necessarily visible in the PATH. If anyone knows how to solve this, I'd be very grateful.
I'm skipping WAR'ing up my app for now. The approach I'm using now will help me transition JRuby into my team faster. Eventually I intend to move to a full Glassfish-based stack. James On Tue, Jul 21, 2009 at 5:28 PM, Charles Oliver Nutter <headius@...> wrote:
|
|
|
Re: Rails and JRubyAh! I solved my PATH problem. The trick was to modify my path in /etc/environment (or ~/.environment, if you want to do this per-user).
I should have the rest wrapped up soon. James
On Wed, Jul 22, 2009 at 11:22 PM, James Herdman <james.herdman@...> wrote: Hi Charles! |
|
|
Re: Rails and JRubyOn Thu, Jul 23, 2009 at 5:29 AM, James Herdman<james.herdman@...> wrote:
> Ah! I solved my PATH problem. The trick was to modify my path in > /etc/environment (or ~/.environment, if you want to do this per-user). > I should have the rest wrapped up soon. Hopefully you can post a howto here and on the wiki once you have worked out all your issues...I suspect others would appreciate it :) - Charlie --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Rails and JRubyHi guys.
I haven't forgotten about this. I'm going into a meeting shortly with my manager and I'll be discussing whether or not I'm allowed to give the community some nifty Capistrano tasks I've written to help deploy apps in this manner. James On Fri, Jul 24, 2009 at 7:53 AM, Charles Oliver Nutter <headius@...> wrote:
|
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |