search for: myrailsapp

Displaying 20 results from an estimated 47 matches for "myrailsapp".

2006 Jul 06
0
Apache 2.0 proxy
...for the static files directories. I don''t do any caching in my app, so I don''t know if that would cause any problems. ruby changes: ------------------------------------------------------------------------------------------- This is a configuration for a rails application "myrailsapp". # At the top of config/routes.rb add the following line ActionController::AbstractRequest.relative_url_root = "/myrailsapp " Apache configuration: --------------------------------------------------------------------------------------------- # johnk 4/5/06 - rails myrailsapp a...
2006 Mar 12
2
InstantRails works with WEBrick, fails with SCGI
...g 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 cookbook shutdown) and: ServerName www.myrailsapp.com # handle all requests through SCGI SCGIMount /dispatch.fcgi 127.0.0.1:9999 DocumentRoot ${path}/rails_apps/myrailsapp/public <Directory ${path}/rails_apps/myrailsapp/public> 5) Added my URL www.myrailsapp.com to Windows hosts file. 6) Configured InstantRails copy of MySQL...
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:
2006 Aug 13
3
Rewrite problem or routing issue?
...slow # # For better performance replace the dispatcher with the fastcgi one # # Example: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal errors # Instead of displaying this message you can supply a...
2006 Aug 13
1
Rewrite problem?
...slow # # For better performance replace the dispatcher with the fastcgi one # # Example: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal errors # Instead of displaying this message you can supply a...
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:
2009 Jun 17
2
Using a cgi perl program?
...w # # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.cgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal errors # Instead of displaying this message you can supply a...
2007 Dec 21
2
config Rails .htaccess
...# # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal errors # Instead of displaying this message you can supply a...
2006 Mar 04
12
cross domain ajax
...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 pretty small (3 fields), one of them is a text field. With the JSON approach, i would probably have to escape the whole text field and pass the values in the url like : http://myrailsapp.com/controller/field_1_value/escaped_textfield_value/field_2_value Will this limit the amount of data that i can allow for the text field? Is there a better way to do cross domain ajax? I want to just let users include one or two scripts on their page and leave it at that. Thanks in advance. --...
2006 Jul 19
1
Help setting up https on Dreamhost
...t 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 of my site is behind https (i think...). I need to change this so that only the payment parts of my website are behind https. Would this be as simple as changing it to my.domain.com/MyRailsApp/app/views/secure and then just putting my payment pages within this di...
2006 May 19
5
more fcgi problems
Finally got fcgi installed with apache. Now whe I click on "About your application''s environment" on the Rails Welcome page, it simply prints out the dispatch.fcgi script as shown below. I would appreciate any help I can get on this. I can provide other infomation if necessary. #!/usr/local/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled #
2006 Jan 06
3
fastcgi on apache
Running on Fedora Core I have been playing with some of the tutorials and one of them had me install lighttpd and lighttpd-fastcgi and that was much faster than apache seems to be. How do I get fastcgi stuff to work on apache... I have this setup for my tutorial environment in httpd.conf <VirtualHost *> DocumentRoot /home/craig/cookbook/public ServerName cookbook <Directory
2006 Jul 30
3
Where to store filesystem path?
Hello, My app needs to know where to store files but the path is different for dev and production. What is the best way to do it? - something like $path = ''/home/myrailsapp/public/files/'' in development.rb and $path = ''/home/my_remote_prod_sapp/public/files/'' in production.rb? - do a test to check the env and add the path in application.rb? - do a test to check the env and add the path in the model files? - something clever? -- Posted...
2008 Jul 21
0
.htaccess exceptions
...# # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] RewriteCond %{REQUEST_FILENAME} *.php # In case Rails experiences terminal errors # Instead of dis...
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.
2006 Mar 17
22
godaddy & rails
Sorry to trouble the list with this question... Do many rails developers run or test rails apps on godaddy hosted servers? Is there any documentation (outside of what godaddy provides) about uploading and testing rails apps there? Perhaps someone has written a tutorial? I googled, but found little to no info about it other than the sparse godaddy docs. Thanks!
2006 Dec 16
1
Big Newbie - FreeBSD Apache2 & Rails?
Hello: I need some basic help. I have a server on which I want to run rails. It''s a freeBSD server with a current port of rails and a lot of other things. I''m a relative unix newbie too so there are some big barriers to entry here: Here''s what I''ve done 1. gem installed ruby 2. gem installed rails 3. gem installed mongrel I''ve also used
2006 Aug 25
10
SVN security hole explained
...-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 extensions, Mongrel is serving up the files behind the scenes. So, http://myrailsapp.com/.svn/entries exposes Subversion metadata. Go and read the posts, well worth the time: http://blog.teksol.info/articles/2006/08/25/subversion-metadata-exposure-on-mongrel Bye ! -- Fran?ois Beausoleil http://blog.teksol.info/
2006 Apr 21
3
Rails on Pair networks
I''ve been looking to play about with Ruby on Rails for a while just to see what the fuss is about and now that I have, it looks very impressive. Unfortunately I can''t seem to get it to run on my shared web server which is run by the hosting company pair networks (www.pair.com). I found the handy guide on the wiki that seemed tailor made for my problems and followed the
2006 Mar 08
1
Help with NameVirtualHost
Can someone help with Apache2 configuration? What I want to have is for "http://myipaddress/myrailsapp" to bring up myrailsapp. My apache 2 is already serving up php apps, and I don''t want to clobber those. Thanks! Stephen