similar to: Where to store filesystem path?

Displaying 20 results from an estimated 6000 matches similar to: "Where to store filesystem path?"

2006 Mar 12
2
InstantRails works with WEBrick, fails with SCGI
I have an app that I''ve been developing for some time with RADRails and WEBrick locally. I wanted to take it to Apache and following the following steps: 1) Downloaded and extracted InstantRails. 2) Started and tested cookbook with SCGI. Works great. 3) Copied my app over to rails_apps directory. 4) Added a virtual host to Apache identical to cookbook (just using port 9999 with
2006 Aug 13
3
Rewrite problem or routing issue?
I''m not able to access anything in public, everything seems to be going through the rails router. As a result, I can''t get to stylesheets or javascript. I''m not quite clear if this is a .htaccess problem, or a router problem. I eliminated the "catchall" route, so the last route is map.connect '':controller/:action/:id'' My .htaccess file
2006 Aug 13
1
Rewrite problem?
I''m not able to access anything in public, everything seems to be going through the rails router. As a result, I can''t get to stylesheets or javascript. I''m not quite clear if this is a .htaccess problem, or a router problem. I eliminated the "catchall" route, so the last route is map.connect '':controller/:action/:id'' My .htaccess file
2007 Dec 21
2
config Rails .htaccess
Hello, newbie here please help I have developed my Rails site under www.mydomain.com/home Now I want to map it to use www.mydomain.com, what should i change to this .htaccess file =============== Content of my .htaccess file under public directory ============ # General Apache options AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI # If you
2009 Jun 17
2
Using a cgi perl program?
I have a cgi/perl program that I want to use on the same server as my RoR app and I keep getting: The page you were looking for doesn''t exist. You may have mistyped the address or the page may have moved. I load the program to the cgi-bin directory in its own folder /cgi-bin/ fump/ In the /public folder of my app I have the following .htaccess file: # General Apache options
2006 Jul 19
1
Help setting up https on Dreamhost
Hi! I am creating a typical online-store whereby most of my site is behind http but i obviously need the payment part behind https. I have already set up my secure hosting with Dreamhost but what i need help with is actually getting it to work how i want it. Currently the web directory that the secure server is set to be running on is my.domain.com/MyRailsApp/public . This means that the whole
2006 Mar 04
12
cross domain ajax
I''m trying to implement a cross domain solution for my rails app. I want people to be able to fill out a form on their site and the data will be passed back to my site through ajax, and their site gets updated. I''m looking for the best way to implement this. I would like to use a JSON approach like yahoo does, but i''m not sure if it will work. Though the form is
2006 Jul 06
0
Apache 2.0 proxy
This is the configuration I use with Apache v2.0. I don''t use virtual hosts. This configuration lets Apache serve the images, javascripts, and stylesheets. ? This means that the application needs to be installed on the Apache server as wheel as the mongrel server(s) in multiple server environments. ? If i wanted to flatten the resource directories I could avoid the rewrite rules,
2006 Aug 25
10
SVN security hole explained
Hi all, If you are using Pound / Pen or another load balancer, I believe you should read this: http://blog.teksol.info/articles/2006/08/25/subversion-metadata-exposure-on-mongrel My article refers to Dan Benjamin''s http://hivelogic.com/articles/2006/04/30/preventing_svn_exposure My point is that even though we are preventing Apache from serving anything except a select few file
2006 Feb 17
3
Switchtower (0.10.0), ssh and environment confusion
Seems like my day for Rails posts... :) OK. I''ve started using Swtichtower to help with deploying changes to my production rails apps. Unfortunately I''ve come accros an inconsistency that I can''t quite figure out. It''s about the PATH env var under Bash. I''ve created a task that just does a: run "env", to show what I''m seeing:
2007 Jun 15
4
404 Error in any controller/action on Media Temple
Hi everybody. I''m a newbie on RoR. I have some experiencie developing in PHP or Java, but I''m just starting with RoR. A few days ago I signed up to the (gs) Grid Service on Media Temple. This is my very first experience deplying RoR on a production enviroment. Until now I just used the WebRick server on developement. Well, the problem I''m having is that after
2006 Jun 15
6
Error in dispatch.fcgi...
Yesterday, our of nothing my server went down... Rails application failed to start properly Imediately i started checking my logs and found quickly that something was wrong with the dispatch.fcgi or its function. I use FCGI, and it had been working perfectly with Apache 2.0.55, MySQL 5.0, Ruby 1.8.2 and Rails 1.1.2. What really got me wondering was that I did nothing. One day it worked
2008 Oct 20
2
Extracting variables with a given prefix in the parent environment
hi, get.vars.name.prefix<-function(prefix){ result<-list() len<-nchar(prefix) var.names<-ls(name=1,pattern=prefix) #name=1 probably wrong option print(var.names) for(i in 1:length(var.names)){ name<-var.names[i] field<-substr(name,len+1,nchar(name)) result[[field]]<-get(name) } result } for example x.1<-1 x.2<-2 get.vars.name.prefix("x.") should
2006 May 11
5
Problem running application in cpanel
Hi, I installed rails following the instruccions from http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel but when i try see the application i have a 500 Internal Server Error, this is only with apache because i can run with webrick Please i am desesperate -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Oct 27
3
Arrays of Trellis plots
hello, the example below does not work. (i know it's not supposed, but it makes it clear what i'm trying to achieve) par(mfrow=c(2,1)) xyplot(y~x2|x1,data=dataframe1,pch=20) xyplot(y~x2|x1,data=dataframe2,pch=20) i know i could probably merge the two datasets and do something like xyplot(y~x2|x1+dataset,data=merged) any other suggestion? thanks. [[alternative HTML version deleted]]
2006 Aug 16
5
Class redefinition
Hi, Suppose I want to redefine the Ruby String class in a Rails app. In which file is it the most suitable to write the redefinition? Thanks Guillaume Carbonneau -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/5b0da204/attachment.html
2006 Apr 24
2
Session Restore Problem
Hi everyone, If I save some object in session and then restart the server, I get the following error unless I restart my web browser (or delete session files): Session contains objects whose class definition isn''t available. Remember to require the classes for all objects kept in the session. (Original exception: uninitialized constant TZInfo [NameError]) I know what the problem
2006 Jan 04
2
Using gems from vendor/ ?
Maybe someone here can help me out. I''ve unpacked tzinfo in to my vendor/ directory using "gem unpack tzinfo" and got a vendor/tzinfo-0.1.1 directory as a result. How can I require this gem in my app? I''m trying to use a require line in my environment.rb but no matter what I do Rails seems to look for a locally installed copy in /usr/local/ instead. Any advice?
2009 Mar 13
1
TZInfo included in Rails 2.2.2 vs. version on RubyForge
I downloaded version 0.3.12 of TZInfo from [1], and observed that it has a very robust set of timezones including, for example, ''America/ Anchorage'': irb(main):001:0> require ''rubygems'' => false irb(main):002:0> require ''tzinfo'' => true irb(main):003:0> TZInfo::Timezone.get(''America/Anchorage'') =>
2007 Sep 23
1
Newbie confusion.
Hello, I am new to Rails and the Linux world coming from 12 years of advanced VB programming. I am writing to try and clear up some confusion on my part about installing Mongrel. Please don''t take this as a rant, I do appreciate the effort that y''all put into the community, but as a newbie, I was, and still am confused. I want to learn about Mongrel, so it found