Hi,
Just a comment: I don't think it's a good practice to set the database
details (establish_connection() call) in the application itself. It's an
environmental issue, and this way you lose the possibility to move
your app between dev, ((devtest)), (test) and production environments
without
Hi,
In a previous thread I was declared as a newbie end user, now I'll behave
like that :)
If I'll use the hosting service, I'll want to be able to use mysql and not
sqlite,
and other experimental solutions. You can say that this is silly of me, but,
as an end user, I have the right to be silly.
On Mon, Apr 16, 2012 at 5:40 PM, Dave Everitt dever...@innotts.co.ukwrote:
I'm not too bothered about 3k. But I think what Nokan's saying is that
he'd like Camping to remain functioning as it is so he can continue to run
his apps as they're set up now, but that extra features could be added
Jenna Fox a...@creativepony.com skrev:
So the 3kb thing is pretty important to you? Anyone else feel the same
way? :)
—
Jenna
On Monday, 16 April 2012 at 10:17 PM, Nokan Emiro wrote:
Hi,
As a simple user of Camping I would prefer to have a classic and
a modern one. in one gem or in separate
of engineering.
And I learned a ton about metaprogramming too. So it can be quite
interesting. :-)
On 4/16/2012 12:41 PM, Nokan Emiro wrote:
Actually env[] works with mongrel also, not just fcgi or passenger.
(No, it's not a typo: env, and not ENV. But I'm sure ENV works too.)
Yes, env inside
Shit! If you told me about it a few hours ago, I wouldn't bother myself
writing a RobotsTxt Controller...
__END__
@@ /style.css
* { margin: 0; padding: 0 }
And Camping will serve it for you. See also:
https://github.com/camping/camping/blob/master/test/app_file.rb
Hi,
I have been working on this in the last ~2.5 weeks:
http://rapiddatingmalta.com
(Yes, I know I'm slow... :- )
On Thu, Apr 12, 2012 at 12:14 AM, Dave Everitt dever...@innotts.co.ukwrote:
I know. That's why it says Look. I haven't done this yet, okay? Give me
a break. :-)
I spent most
Hi List,
What about creating a section on the Camping site, where you list
and link sites that were built using Camping? Of course just those
ones that are good enough. It would show the public that it's a
working framework, so it's good for the community. On the other
hand it's good for the
Hi,
The tab Sites using Camping is empty :)
I mean no more than 0 links are there.
On Wed, Apr 11, 2012 at 2:13 PM, Dave Everitt dever...@innotts.co.ukwrote:
I've been collecting Camping links for some years, including 'sites built
with', and started sorting them here (the site's not
application.
Signing out...
On Sat, Apr 7, 2012 at 6:06 PM, Nokan Emiro uzleep...@gmail.com wrote:
Why does it work without the @ for me?
On Fri, Apr 6, 2012 at 4:26 PM, Magnus Holm judo...@gmail.com wrote:
It should be in @env:
@env['HTTP_REFERER']
(Note that it's misspelled in the spec
Why does it work without the @ for me?
On Fri, Apr 6, 2012 at 4:26 PM, Magnus Holm judo...@gmail.com wrote:
It should be in @env:
@env['HTTP_REFERER']
(Note that it's misspelled in the spec)
___
Camping-list mailing list
Hi,
What's the nice and preferred way to run a snippet of controller code
before all other normal controllers can do something?
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
Hi,
How can I access the Rack request object in a controller? I need
to know the HTTP_REFERRER, but I can't find it in env. (I'm
sure I need glasses, or have to sleep more...)
___
Camping-list mailing list
Camping-list@rubyforge.org
I'm sorry bothering you, it was there in env, env['HTTP_REFERER'].
(But it still would be useful sometimes to access the Rack's Request
object...)
On Fri, Apr 6, 2012 at 3:01 PM, Nokan Emiro uzleep...@gmail.com wrote:
Hi,
How can I access the Rack request object in a controller? I need
Hi,
As I already mentioned I use Camping with fcgi in production. If It is
your choice (and not passenger), I will help you set it up.
On Sun, Apr 1, 2012 at 5:49 PM, david costa gurugeek...@gmail.com wrote:
Hello again ! :)
well in theory we can chrot jail users but the best way is to
I really want to know what gems do you (all out there) think quality...
Maybe there's a statistics from a big gem server which ones are the most
wanted.
What about the versions? Applications can work differently (or not work :-
) with
different versions of gems (and ruby).
Will the hosting
On fastcgi - fastcgi is not a server in itself - you cannot connect to it
with a web browser. Like Passenger, it's a way for a server like nginx or
apache to launch and talk to processes which return webpages directly.
FastCGI IS a server in itself - you can connect to it, but not with a web
Hi,
I run a few Camping apps in production with Rack's FastCGI handler.
This way it is completely separable from the webserver, which can be
nginx, apache, lighttpd, or anything else that implements the FastCGI
protocol. On top of that it's more scalable, because you can run these
processes on
yourname2.camping.io without having nginx
or apache as a reverse proxy ?
On Sat, Mar 31, 2012 at 4:44 PM, Nokan Emiro uzleep...@gmail.com wrote:
Hi,
I run a few Camping apps in production with Rack's FastCGI handler.
This way it is completely separable from the webserver, which can
SCRIPT_NAME is the mount-path.
PATH_INFO is the internal app-path.
So if you want your application available at xxx.com/my_app/, then the
request xxx.com/my_app/add will look like this:
SCRIPT_NAME=/my_app
PATH_INFO=/add
If it's available at xxx.com/, then xxx.com/add will look like
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.
___
Camping-list mailing list
Camping-list@rubyforge.org
It seems to me that PATH_INFO is still not properly handled, but that
it's always empty.
You are right, PATH_INFO is always empty. If I fill it with the
$SCRIPT_NAME
value, controllers can be accessed again. But links generated by R() are
still wrong:
a 'Add', :href = R(Add)
on a page
Hi,
As you already know I'm working on turning my Camping app
into production. Unfortunatelly I find lots of problems on my way.
The next one is here:
My Camping app does something dirty on the 'redirect CtrllerName'
lines. The webserver serves https requests, and before I placed
Thanks for the explanation.
I have had the create method in my application, it calls
Models::create_scheme, because I have migrations too.
(Everything encapsulated, that's what I like about Camping.)
Actually the problem with X.create was that my
fastcgi-camping-server did not initialize any
It has still the same 4 problematic lines:
s.date = %q{2011-10-11 00:00:00.0Z}
...
s.add_development_dependency(%qrake,
[#YAML::Syck::DefaultKey:0xb67fdb98 0.8.7])
...
s.add_dependency(%qrake, [#YAML::Syck::DefaultKey:0xb67fdb98
0.8.7])
...
s.add_dependency(%qrake,
Yes, You are right, that works in this way. But this is a
bit different what I want to do. rackup runs my Rack
application in a webserver (webrick or mongrel), and
I can't use orher handlers than these. I prefer to use
Rack in a bit lower level.
Suppose that in a standard Ruby script the
The app itself implements Rack protocol.
Yes, that's what I've already tried. It is the case when my
app stops whenever the first fastcgi request arrives:
/usr/lib/ruby/1.8/rack/utils.rb:23:in `unescape': undefined method `tr' for
nil:NilClass (NoMethodError)
from (eval):33:in
Are you running Apache?
No, the webserver is nginx, and I use fastcgi to attach my apps into it.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
Does it work the regular way? (via rackup)
Yes, rackup makes my app run. In this case an other
probleme occures, that is more Camping specific.
The ActiveRecord cannot connect to any database.
I think Camping makes some initialization before
starting up my app, that is missing in this case.
29 matches
Mail list logo