similar to: Serving rails application from server root

Displaying 20 results from an estimated 20000 matches similar to: "Serving rails application from server root"

2007 Feb 09
3
Re: URL issues
hello... On 2/8/07, cdvr <codecraig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > I watched the rails screencast on creating a blog in 15 minutes. > I followed along got it working on my home PC and I then uploaded it > to my web host. So I have, > > /home/<username>/blog > > I had to change some config in the blog app (i.e. production
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using apache and scgi. The application runs fine with webrick. I have a site. Let''s call it "mysite.org". There is a variety of content on that site. I would like to add a rails application to that site. Let''s call the application "myapp". So we will have urls of the form
2006 Jul 07
10
problem serving pdf files
I''m using the instructions from http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/to configure mongrel_cluster with apache mod_proxy_balancer. Everything works fine, except when I try to link to a pdf file to be opened in a new window, it displays the contents of the pdf as text instead of opening it as a pdf document through Acrobat.
2012 Dec 12
2
How to get ruby running on a webserver
Hi, I have purchased a VPS that has WHM cpanel. I have logged into the root of my system using putty and installed ruby 1.9.3 via rvm and rails 3.2.9. I have created a website in cpanel that has created a public_html directory that is live and working on the web. I then created a simple ruby website called blog in the public_html directory. My question is how do I get the ruby application to run
2006 Jan 03
3
RoR and Apache2 and app in local directory
Hi all. I''m at my wits end.. I''m trying to set up a Rails app (on a Ubuntu system), within the public_html directory in my home directory (as opposed to the /var/www/ directory). ie. in /users/john/public_html/myapp I have a simple app setup, and using the Webrick server it works fine. But trying to get Apache to work is becoming a pain in the *&^*. I followed the
2006 Aug 11
6
css - location of files.
Hi all. I have the following scenario. http://myapp/site1 is using <%= stylesheet_link_tag ''myapp_standard'' %> to define the stylesheet for layout, I have myapp_standard.css in /public/stylesheets and it works fine. However, in the stylesheet I define a image to use for my site background. eg: html, body{ background-image: url(mysite_background.jpg); padding-top:
2006 Dec 29
9
Error : No protocol handler was valid for the URL...
Hi everybody, I just suscribe to the list because I have a problem using mongrel and mongrel_cluster... I setup a server (debian unstable wich provide apache 2.2.3 as a pakage) but I have an error when I try to access my application : ERROR 403 : Forbidden, You don''t have permission to access / on this server. When I check apache''s logs I found that : [warn] proxy: No
2007 Dec 07
1
Ruby on Rails applications with Mongrel cluster
Hello All I am trying to install 5 mongrel servers against my app. i am using Vista. I found this article on a website.. but am stuck on one point. here are some notes from article: Now enable the needed modules (url rewriting, proxy, proxy_balancer e proxy_http) by editing the httpd.conf file (under c: \Apache_Software_Foundation\Apache2.2\conf, if you installed Apache in its standard path).
2006 Jun 07
1
Site5 Hosting: Defautl Root Directory for site
Just signed up for hosting with Site5. So far the service has been great, but one question I had couldn''t be answered by the tech support. I need to change the default root directory of my site from public_html to a rails directory (i.e. foo/app/public). The tech support suggested mod_rewrite. Any other suggestions on ways to accomplish this? Thanks, Nathan -------------- next
2006 Jul 14
2
Question: SVN the down and dirty
So I have done a bit of svn''ing. I use RadRails as well so SVN is built in. Question though is I''m not sure exactly how it fits in my Ruby / Rails tree. I imagine I can create one directory, say called SVN and then within there all the sub directories for various svn repositories I might want to download / update from. But what I am not sure about and don''t want to
2009 Jun 22
1
Action caching with multiple domains
I have recently setup some action caching in my Rails app and everything seems to be working fine. I am using file store pointing at /tmp/cache. The problem I am running into is that separate cache directories are being created for different domain names that point at the same server. For example mysite.com and www.mysite.com will have different cache directories. It seems like it should be easy
2006 Sep 26
5
Expert feedback needed
Hello list, Some time ago I was looking for apache (as non balanced proxy) + mongrel configurations. Almost everybody seemed to use similar approaches (one of these could be found @ mongrel.rubygorge.org docs) with mod_rewrite. I don''t use proxy_balancer because I don''t need it at the moment (my site has pretty low traffic). This is apache configuration that I''m using
2006 Jul 03
1
Apache mod_proxy to mongrel
Hi Guys, I know this is slightly off topic, but it''d be great to get some feedback from anyone who''s using mod_proxy on Apache 2.2 to redircet to a rails app on mongrel. Everything has been running fine generally but a few days back we started getting a gap in the performance between the Apache port and the mongrel port. accessing through port 80 was averaging ten times longer
2007 Nov 07
11
Links go to ''localhost''
I am using Apache2.2 + Mongrel on my machine. Now I am accessing it over LAN. When I enter http://mymachinename/myapp it opens fine but when I click on any link in my rails app, it replaces mymachinename with localhost (http://localhost/myapp/controller/action) and thus I am unable to access it from remote location.
2006 Feb 06
4
fcgi to run cgi scripts
Dear experts, I have rail site that is running lighttpd and fcgi. I want the default domain to serve the rails application, and I also want to have a virtualhost (bugs.mysite) to resolve to a bugzilla instance. Bugzilla is basically Perl application called through CGI. I tried to find pointers on how to set fcgi to run both rails dispatcher and other cgi scripts in a different virtualhost, and
2006 May 12
3
Permission denied ruby_sess?
I am really new to RonR. Anyone can give me a hand with this? I get the Application Error page and if I look at development log, this is what I see: Permission denied - /home/john/public_html/rails/myapp/public/../config/../tmp/sessions//ruby_sess.5b90dd63b9d25d2e Any idea? -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 May 15
1
staging deploy connected to production database
I''m not sure why but I have both a staging and production deploy using the ''capistrano/ext/multistage'' gem. I set staging to the default: set :stages, ["staging", "production"] set :default_stage, "staging" It deploys correctly to the right path: #deploy/staging.rb set :deploy_to, "/home/myuser/public_html/mysite/" But it
2006 Apr 05
13
Apache Deployment Woes
Hi Everybody, I''m down to my last straw. I''ve been trying to deploy my latest rails project on Apache for about two weeks with limited success. I have a lot of info, but still no clue what is causing my problem. I decided to turn to the community for some help... Basically, my site works fine with Apache and FastCGI most of the time, but sometimes I get the "Rails
2006 Jul 26
5
Mongrel + mod_proxy URL issues
We have a Centos server with a number of virtual hosts, and my rails app runs under one of those virtual hosts using mongrel_rails. The app lives in /home/mydomain/railsapp where /home/mydomain/railsapp/public is the rails root. It runs under mongrel on port 8008, so to get to it users invoke the url http://www.mydomain.com:8008/ - all is fine to this point. Now I have some users whose
2010 Dec 01
10
How to Redirect from http://mysite.com to https://www.mysite.com on Herok
Hello I''m looking to learn how to redirect all non-www (mysite.com) to https://www.mysite.com I tried the following: class ApplicationController < ActionController::Base before_filter :check_uri def check_uri redirect_to request.protocol + "www." + request.host_with_port + request.request_uri if !/^www/.match(request.host) if Rails.env ==