On Feb 14, 11:20 am, ChrisR <
EvilGeen...@gmail.com> wrote:
> Would it be possible for switchpipe to automatically add this line to
> production.rb when running rails?
>
> ActionController::AbstractRequest.relative_url_root = "/APPNAME"
>
> This would mean I could change the name of the yml file without also
> having to remember to go into the rails app and change
> production.rb.
This might be something a plugin (one of the forthcoming features - a
plugin system!) could tackle, but currently there is no nice way of
doing this.
However, I had this problem early on myself during development but
realized that I'd not ever be using subdirectories because I'd either
be proxying through from Apache, which would then mean Rails
applications get it right without needing to specify a root, OR I'd be
using SwitchPipe's "Host" support and using special hostnames directly
without needing the directory suffix. Is there a reason why these
approaches aren't suitable for you?
I'm not asking merely to implicitly make you use those techniques, but
I'm genuinely interested if there is a reason or demand for this so I
can consider it :)
> Keep up the good work with switchpipe. It really has helped me with
> deploying my rails apps inside my organisation.
Thanks for the support!
Cheers,
Pete