rubyonrailsin

A Ruby and Rails talk

Saturday, March 20, 2010


[spree-user] Re: Spree & Passenger

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Actually I figured out a better way. Since everytime you hit restart
in the passenger prefpane (on a mac), it resets the vhost.conf files
back to the defaults that the prefpane uses, it was changing the
custom edits I was making. So in the httpd.conf file after this:

<IfModule passenger_module>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName _default_
</VirtualHost>
Include /private/etc/apache2/passenger_pane_vhosts/*.conf
</IfModule>

I added my custom vhost, this:

<VirtualHost *:80>
ServerName ho.detail
DocumentRoot "/Users/***/Sites/Rails/eaton/public"
# RackEnv development
RailsEnv development
PassengerPoolIdleTime 0
<Directory "/Users/***/Sites/Rails/eaton/public">
Order allow,deny
Allow from all
</Directory> PassengerPoolIdleTime 0
</VirtualHost>

And it worked perfectly.

Thanks for all your help!

Marc

On Mar 20, 6:17 pm, Ryan Michael <keri...@gmail.com> wrote:
> I use RailsEnv and it works for me, just point it at your public
> folder
>
> On Mar 20, 8:45 am, Chris <r3ap3r2...@gmail.com> wrote:
>
> > You need to edit /etc/apache2/passenger_pane_vhosts/your_vhost.conf manually.
> > The passenger pref pane only adds "RailsEnv development" to the server
> > config.  You also need "RackEnv development" (or production depending
> > on which mode you are running in).
>
> > Actually I may have it reversed, I can't remember for sure which one
> > is added by the pref pane.  Basically, whichever one you see when you
> > edit the file add the other and restart apache.
>
> > -Chris
>
> > On Sat, Mar 20, 2010 at 6:06 PM, Marc Lipovsky <marclipov...@gmail.com> wrote:
> > > I haven't been able to find anything on this really. I'm running
> > > passenger on my Mac and on my DreamHost domain. I'm using the
> > > Passenger PrefPane on my Mac and I added the Spree application like I
> > > did with the rest of the apps but it doesn't work.
>
> > > Any ideas? Thanks!
>
> > > --
> > > You received this message because you are subscribed to the Google Groups "Spree" group.
> > > To post to this group, send email to spree-user@googlegroups.com.
> > > To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
> > > For more options, visit this group athttp://groups.google.com/group/spree-user?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive