<div class="gmail_quote">On Mon, Apr 20, 2009 at 6:04 PM, Julian Pawlowski <span dir="ltr"><<a href="mailto:lists@propenguin.net">lists@propenguin.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/4/20 Kenneth Kalmer <<a href="mailto:kenneth.kalmer@gmail.com">kenneth.kalmer@gmail.com</a>>:<br>
<div class="im">> Not recommended really, at least not from my experiences.<br>
<br>
</div>I think you are mainly talking about using fcgi. I didn't have a<br>
chance to have a closer look to mod_passenger but I would have special<br>
needs regarding the security and usability. I'm also running PHP as<br>
FCGI for example so that every virtual server runs under it's own user<br>
id (which has also the benefit to avoid problems with access rights<br>
when accessing via FTP).<br>
For now using fcgi was the easiest way for testing.</blockquote><div><br>If you know it well, granted. My apologies for being overly insisting. May I note however that passenger by default uses "user switching". It checks who the owner of the config/environment.rb file is, and spawns the Rails process as that user. I share your sentiment on the user per vhost, we use suphp for the same thing.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
The final decision to use a subdirectoy is very simple: I only need to<br>
buy one single SSL certificate for the production environment to<br>
handle several tools.</blockquote><div><br>Winner! <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
> Thanks for the pointer, will try to mimic it on this side. As far as I'm<br>
> aware of the framework should deal with this on the fly. If I can get the<br>
> issue duplicated reliably I'll take it up with the Rails core team.<br>
<br>
</div>However it is only related to those few images from above, all others<br>
just load fine.</blockquote><div><br>Pushed a fix to github moments ago. The images in the stylesheets were absolute, not relative, and stylesheets don't get parsed by Rails so the environment changes you made wouldn't have a difference. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
> Thanks for the great feedback on these issues. FCGI is one of the lesser<br>
> used deployment options for Rails.<br>
<br>
</div>I would have another issue here: The logout function redirects me<br>
right to the top of the domain instead of to the subdirectory.<br>
There are also other issues I already found with template and macro<br>
handling but this is not fcgi or subdomain related. I will take the<br>
correct way and open some tickets in your request system for it :-)</blockquote><div><br>Fixed as well, thanks for pointing this out to me.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div class="im"><br>
> Again I really recommend you give<br>
> passenger a go. Since you have Ruby and Rubygems installed, it should be as<br>
> simple as this:<br>
<br>
</div>Yes, sure it's simple to install. It's more due to all my dependencies<br>
I have in a complex enterprise environment. Will take some time to<br>
check out if the other stuff and configuration would just work fine.<br>
<div class="im"><br>
> Personally I deploy my rails applications on subdomains, rather than inside<br>
> subdirectories, and this always works first time.<br>
<br>
> I understand getting this<br>
> up the first time is a pain in the behind, and I appreciate your patience.<br>
> The Ruby community is working very hard to ease these problems.<br>
<br>
</div>Main point is the missing documentation I must say :-)</blockquote><div><br>Guilty as charged!<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
As I was not familiar with the needs running a ruby application I had<br>
to investigate the easiest way for my testing first.<br>
For production use I would also need to have additional information,<br>
for example if I should set the application into productive state or<br>
not and how I do an automatic transfer of the databases. I saw a bit<br>
of this functionality but it's hard to find just that information that<br>
would really be necessary for me.</blockquote><div><br>Good point on the environments, I'll formulate some stuff and publish on the wiki. <br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
BTW: I will record a podcast show about PowerDNS and PowerDNS-on-Rails<br>
next weekend (in german language). Let's see what else I can tell<br>
about all the stuff untill then :-)<br></blockquote></div><br>That would be awesome.<br><br>Julian, thank you. I've learned a lot from your patience and willingness to get it the project running. I must admit I was naive thinking a Rails project would always run under the domain root. Also the daunting tasks of initially getting a Ruby environment up didn't even occur to me. Hoep this experience has been as rewarding for you as it was for me.<br>
<br>All the best!<br clear="all"><br>-- <br>Kenneth Kalmer<br><a href="mailto:kenneth.kalmer@gmail.com">kenneth.kalmer@gmail.com</a><br><a href="http://opensourcery.co.za">http://opensourcery.co.za</a><br>@kennethkalmer<br>