On Tue, Oct 11, 2011 at 18:21, Nokan Emiro uzleep...@gmail.com wrote:
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
On Sun, Oct 9, 2011 at 15:43, Nokan Emiro uzleep...@gmail.com wrote:
Hi,
Could you please show me the preferred/nicest way
to run my Camping application as a Rack all? I like
doing my work in Rack because it's easy to run my app
in a standalone webserver, or mount it to a path in
my
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
Hi all,
What I do is check the ENV variable ... and I use Passenger Phusion to run
my Rack apps
So ... like this ... install Apache and Passenger Phusion and point
passenger at a rack_apps dir (under the web server root)
Now I have
/var/www/localhost/htdocs - web server doc root
I'm not sure what are you trying to accomplish.
Can't you just create a config.ru file like this:
require './yourapp.rb'
run YourApp
And then use `rackup` to start the app?
config.ru files are widely understood, the same thing works for
example with mod_passenger or Heroku.
-- Matma Rex
user Rack::Handler::Thin, ...::CGI, and even
...::FastCGI.
What I really want to do is to run my Camping app using
the Rack::Handler::FastCGI.
I would like to know how can I convert my Camping app into
an object (module, class, lambda or anything else) in Ruby
that implements the Rack interface
The app itself implements Rack protocol. (That is, if you do
Camping.goes :App, then your obj variable would be App - it
implements .call, I think it's all that's needed?)
-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
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
Does it work the regular way? (via rackup)
Does it work your way, but with a different handler?
Which version of rack you're using? I can't find any usage of tr
method in 1.3.4's rack/utils.rb, and line 37 of rack/session/cookie.rb
is a comment.
-- Matma Rex
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.
It looks as if your application is getting a FastCGI request without the
'PATH_INFO' environment variable. I'm not too sure what to make of that. Can
you try a rackup which runs this app?
require 'rack'
require 'pp'
App = lambda do |env|
body = ''
PP.pp env, body
[200,
12 matches
Mail list logo