search for: rails_relative_url_root

Displaying 11 results from an estimated 11 matches for "rails_relative_url_root".

2007 Feb 08
2
cannot set ENV['RAILS_RELATIVE_URL_ROOT']
i am on lighttpd now, and i cannot set cannot set enviroment variable: i added this line to enviroment.rb, but it doesn not work!! ENV[''RAILS_RELATIVE_URL_ROOT''] = ''something'' links on my page are ok, but all links to images, stylesheets etc are broken, (because relative_url_root returns ''''), what else can I do? thanks. f. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-----...
2013 Aug 27
2
Changing the PE3 console's RAILS_RELATIVE_URL_ROOT? How to prepend a URL string?
...the web log files. A PCI requirement I believe. So, the question is how to change https://console.puppet.net into https://mypuppetlabel/console.puppet.net....and hopefully still keep PE happy and functioning as an ENC / report processor :) Having had a dig around, by best guess would be to modify RAILS_RELATIVE_URL_ROOT which seems to be set in a few different configuration.rb files only. Doesn''t seem to be set in httpd/conf.d/*passenger* which I would have expected. Can anybody confirm that it a) is possible, and b) how to do this? Regs, Stephen -- You received this message because you are subscribe...
2006 Jun 20
8
Integrating multiple applications
I''ve got a couple apps that I use (billing app, support ticket app, some other custom apps) that I want to integrate into one site. They will all use the same layout for the most part, and will link between each other. When I initially thought of doing this, I figured if I put the apps at different roots - /billing /support etc - then the links wouldn''t work at all, because
2006 Nov 30
4
mongrel served from a subdirectory
.../ ProxyPassReverse /docserver/ http://example.com:3001 ProxyPreserveHost on The problem seems to be two fold. First, the css, image and javascript links, are all broken. Second all the generated links are to /controller/action instead of to docserver/controller/action. I tried putting RAILS_RELATIVE_URL_ROOT="/docserver/" in enviornment.rb, but that didn''t help. any ideas? Thanks, Michael Fairchild -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061130/cb2fcf9e/attachment.html
2006 Nov 04
2
[ Rails ] Multiple rails apps on 1 host
...ax-procs" => 1, "socket" => CWD + "/../app2/tmp/sockets/fcgi.socket", "bin-path" => CWD + "/../app2/public/dispatch.fcgi", "bin-environment" => ( "RAILS_ENV" => "development", "RAILS_RELATIVE_URL_ROOT" => "/app2" ) ) ) ) } I ran script/server from /tmp/app1 to start lighttpd. It came up fine. I tried http://localhost:3000/ I got the rails splash page as before. I tried http://localhost:3000/app2/index.html I got the rails splash page I tried http://localhost:3000/app2/...
2012 Oct 12
3
[PATCH] explicitly use escaped minus in man pages
...ommand, use of \[lq]-l\[rq]/\[lq]--listen\[rq] switch is +command, use of \[lq]\-l\[rq]/\[lq]\-\-listen\[rq] switch is recommended instead. .RS .RE .TP -.B --path PATH +.B \-\-path PATH Mounts the Rails application at the given PATH (instead of \[lq]/\[rq]). This is equivalent to setting the RAILS_RELATIVE_URL_ROOT @@ -115,26 +115,26 @@ This is only supported under Rails 2.3 or later at the moment. .RE .SH RUBY OPTIONS .TP -.B -e, --eval LINE +.B \-e, \-\-eval LINE Evaluate a LINE of Ruby code. This evaluation happens immediately as the command-line is being parsed. .RS .RE .TP -.B -d, --debug +.B \-...
2006 May 08
10
Apache 2.2, ProxyPass and HTTPS
Hi all, I''m currently trying to get Mongrel running my app whilst fronted by apache 2.2 in a sub-directory via https. A bit convoluted I''ll grant you but necessitated by existing systems. The pertinent parts of my httpd.conf: <VirtualHost 123.123.123.123:12345> #historic choice of random port number DocumentRoot /var/www/admin ServerName admin.example.com:12345
2010 Jun 04
8
unicorn_rails cleanup (possible fix for Rails3) pushed
...::Rails::VERSION::MAJOR + when 0, 1 then true + when 2 then Rails::VERSION::MINOR < 3 ? true : false else - require ru - Object.const_get(File.basename(ru, ''.rb'').capitalize) + false end Rack::Builder.new do map_path = ENV[''RAILS_RELATIVE_URL_ROOT''] || ''/'' - if inner_app.class.to_s == "Unicorn::App::OldRails" + if old_rails if map_path != ''/'' # patches + tests welcome, but I really cbf to deal with this # since all apps I''ve ever dealt wi...
2011 Mar 21
3
Does unicorn support mount the webapp with a prefix like Thin does?
For example, I have a webapp that handles /welcome. Does unicorn support to mount the entire webapp at /prefix so request to /prefix/welcome are?handled?
2007 Jan 22
5
rails helpers are adding extra folders
i have a new rails site that i am setting up just like i normally do with all of the other sites. i created a subdomain which is pointed to a subfolder in my public_html. i can view the site both at test.mywebsite.com and mywebsite.com/test/ but when i view it by the subdomain, rails helpers are adding the /test/ to all of my resources, so none of my images or style sheets are found. this
2006 Mar 07
13
hosting multiple rails apps in one webroot?
It''s actually REALLY easy with lighttpd on linux. Two apps... Myserver.com/code/ => /apps/code/ Myserver.com/test/ +> /apps/test/ Each application needs this in the environment.rb /apps/code/config/environment.rb ActionController::AbstractRequest.relative_url_root = "/code" /apps/test/config/environment.rb ActionController::AbstractRequest.relative_url_root