Displaying 20 results from an estimated 4000 matches similar to: "Resolved: Apache + CGI/FastCGI + mod_rewrite"
2008 May 21
32
Rack, Camping 2.0++
===
1. Camping on Rack
===
I''ve just finished rewriting Camping to use Rack in the "core". I got rid of
(a little less) than 1kB in camping.rb and removed lots of un-necessary files
(lib/server/*.rb, fastcgi.rb & mongrel.rb).
bin/camping does now only provide WEBrick, Mongrel and console-support and
should only be used in development. It uses Rack::ShowExceptions to catch
2009 Mar 29
5
Rack::Lint::LintError with latest camping and rack
I''m trying to use Camping from Magnus'' repo (1.9.300) but running the
blog.rb example (or anything for that matter) gives me
Rack::Lint::LintError at /
Content-Length header was 0, but should be 548
Ruby C:/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:
in assert, line 16
Web GET localhost/
There are no errors on the camping output so I suspect something has
2008 Jun 03
8
@@state_secret
I was having some issue getting the class variables in
Camping::Session to work with some old apps, so I''ve changed
@@state_secret to a method.
module Blog
include Camping::Session
def state_secret; "kxxxx" end
end
Also, merged some of zimbatm''s patches. And trying to revive the
Junebug wiki <http://github.com/why/junebug> since it''s still
2008 May 24
19
Camping 2.0 - What''s left?
I''ve just sent a pull-request to _why with my changes[1] and here is some
things that I think needs to be done before a (possible) release:
* The cookie session is named Camping::Session and is placed in
camping/session.rb. Maybe this should be called Camping::CookieSession or???
* The ActiveRecord session is named Camping::ARSession and is placed in
camping/ar/session.rb. Maybe it
2008 Jun 06
2
Messy Cookies
It looks like everyone has tried to fix the cookies lately, and no-one managed
to get it 100% correctly.
The current implementation doesn''t set the path correctly, and you can''t use
@cookies in a #service-overload.
Qwzybug''s patch fixed only the sessions.
Jenna''s patch won''t allow to set complex cookies (@cookies.key = {:path =>
"/path",
2008 May 19
6
Sample Code, quick simple openid auth
You''ll need to install the ''openid'' gem for this, and require it in
your camping app:
class Login < R ''/login''
def get
this_url = ''http:'' + URL(''/login'').to_s
unless input.finish.to_s == ''1''
# start doing the auth here
begin
2009 Nov 03
2
Camping on Wikipedia
Hi all
I found the Camping page on Wikipedia in need of some serious TLC, so
I updated it, added some newer links and removed the ''stub'' status:
http://en.wikipedia.org/wiki/Camping_%28microframework%29
I also pointed people to the Github repo for version 1.9.
Please take a look and either make suggestions for further material
for me to add (not too much...
2006 May 23
7
how to pull text from database and eval it?
I''m trying to add some executable code to my blog posts. How can I
include this inside of a blog post and eval it?
Charlie bowman
http://www.recentrambles.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/a3536408/attachment.html
2005 Oct 10
1
Need help from Apache mod_rewrite crew !
Hi !
Has anyone got any tips/tricks on running a Productized Rails app on
DreamHost ?
Specifically, I get this in my error.log:
-----------
[Mon Oct 10 11:39:46 2005] [error] [client 69.70.225.69]
mod_rewrite: maximum number of internal redirects reached. Assuming
configuration error. Use ''RewriteOptions MaxRedirects'' to increase the
limit if neccessary.
-----------
As
2008 May 23
8
An issue for consideration
We''ve just come across an issue for consideration. I am avoiding some
words which would allow people to find this message in an internet
search who have questionable intentions, but wish to communicate a
strong sense of caution. Consider someone who adds extra methods to
their controller which they use in their main get/post methods to do
things or to get secret data. Consider
2007 Nov 18
14
css image url''s and :img problem
Hi,
i have this controller class to serve static files. It works well for
the stylesheet file under a /static directory, locating it, but the
images referenced in the stylesheet do not appear. They are in the
same /static folder, next to the stylesheet.css file.
link :rel => ''stylesheet'', :href => R(Static, ''stylesheet.css''), :type
=>
2007 Feb 18
1
FastCGI without ScriptAlias
Hi,
I made some experiments with the sample blog application, my index.fcgi
file contains the following:
require ''camping/fastcgi''
Camping::Models::Base.establish_connection(
:adapter => ''sqlite3'',
:database => ''database/camping.db''
)
Camping::FastCGI.serve(''blog.rb'')
Without ScriptAlias the application works fine,
2009 Jan 24
1
Do we still need to be alert when on SQLite3?
Anyone knows if we still need to follow the instructions at
http://web.archive.org/web/20080113055731/code.whytheluckystiff.net/camping/wiki/BeAlertWhenOnSqlite3,
or if the stable release is good enough?
//Magnus Holm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/camping-list/attachments/20090124/c31af77a/attachment.html>
2011 Oct 13
2
how to catch 404s?
How can I hide/catch the "Camping problem! /xxx not found" pages?
It would be great to define my own handler instead, or simply
redirect to the root of my app.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/camping-list/attachments/20111013/ba7145ee/attachment.html>
2008 Jul 10
1
AR Sessions
Hi all,
I have a little camping micro-blog that''s working well with the cookie
session store, but falls over when I try to use the AR session store.
The changes I made were:
require ''camping/session'' becomes require ''camping/ar/session''
module Blog; include Camping::Session; end becomes module Blog;
include Camping::ARSession; end
and I did the
2008 May 22
2
Camping-list Digest, Vol 23, Issue 8
Removed 25% of the framework? Gosh, I wish _why wasn''t so darn verbose...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/camping-list/attachments/20080522/7612c03e/attachment.html>
2007 May 04
22
CampingConf?
Campers --
In a few weeks there will be a bunch of people in Portland, OR, for a
conference. A long time ago some campers mentioned that might be a
good time for us to get together and hold a mini CampingConf for a few
hours. Is anyone interested? Does anyone want to organize it?
I''m thinking Wednesday night, May 16.
We could possibly get a spot at FreeGeek (not likely since they are
2007 Feb 27
5
Camping on Dreamhost - Please Help!
Hi Folks,
I''ve been trying to get camping up and running on dreamhost for the
past six hours, but have had no success. I''d really appreciate any
suggestions!
The camping gem is on the dreamhost server, but just to make sure it
wasn''t a dependency issue causing all the problems, I installed
camping + the full set of dependencies in my own gem directory (both
are on the
2007 Jul 22
2
500 error while trying to run Camping on Dreamhost
I''ve tried setting up an Hello World app with Rails (no database), on a
Dreamhost account. I used the configuration I found here
http://www.mail-archive.com/camping-list at rubyforge.org/msg00114.html with
the proper paths. But I keep getting Internal Server Errors (500). On the
error.log I found this
[Sun Jul 22 15:32:07 2007] [error] [client 82.154.48.138] FastCGI: comm with
(dynamic)
2012 May 15
5
setting up the SQLite database
I know this isn''t Python, but I''d like to get a view on the ''one
obvious'' way to set up an SQLite (or other) database and its location
per-app. I''ve got a bit lost with the Camping 2 changes and various
code snippets I have kicking around.
1.
is it best to set up the DB creation/connection:
1.1
at the end of the app