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 GEM_PATH). Other gems in this directory work fine. The following script, which really just loads camping, works from the command line, but gives me a internal server error if I invoke it as a cgi. When I substitute any other gem for camping (for example gruff) it runs fine as a cgi. #!/usr/bin/ruby require ''rubygems'' require ''camping'' # ''gruff'' puts "Content-Type: text/html" puts puts "<html>" puts "<body>" puts "<h1>Hello World</h1>" puts "</body>" puts "</html>" This next script gives me a "(eval):14:in `initialize'': private method `sub'' called for nil:NilClass (NoMethodError)" error on the command line, and an "internal server error" as a cgi. Of course it runs perfectly on my dev machine :). #! /usr/bin/ruby require ''rubygems'' require ''camping'' Camping.goes :TestPage module TestPage::Controllers class Index < R ''/'' def get render :index end end end module TestPage::Views def index h1 "Hello World" end end if __FILE__ == $0 puts TestPage.run end Please help - I''d really love to use camping for this project! Thanks! Dan
Dan Gottlieb <camping at ...> writes:> > 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! >Were you able to get it working? I am struggling as well and any help would be appreciated. -Andrew
On Thu Mar 08, 2007 at 01:28:37AM +0000, Andrew Ullmann wrote:> > Dan Gottlieb <camping at ...> writes: > > > > > 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! > > > > Were you able to get it working? I am struggling as well > and any help would be appreciated.you can probably just cp -av /usr/lib/ruby into your homedir and then export GEM_HOME=~/lib/ruby/gems/1.8/ export GEM_PATH=~/lib/ruby/gems/1.8/ in .bashrc and add any more gems you need like camping. maybe you can bypass the copy/install of ruby and define GEM_PATH to be /usr/lib/ruby/gems/1.8:$HOME/usr/lib/ruby/gems? maybe you should bug dreamhost to install camping, since its so much lighter than rails i dont see why they wouldnt want to promote it in a shared hosting environment...> > -Andrew > > > > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
Not yet, but I have an idea I want to play with this weekend that I think will work. If I can get camping up and running, I''ll write up the steps on the dreamhost wiki. Dan On 3/7/07, Andrew Ullmann <ullmann at gmail.com> wrote:> > Dan Gottlieb <camping at ...> writes: > > > > > 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! > > > > Were you able to get it working? I am struggling as well > and any help would be appreciated. > > -Andrew > > > > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
On Mar 7, 2007, at 8:48 PM, carmen wrote:> maybe you should bug dreamhost to install camping, since its so > much lighter than rails i dont see why they wouldnt want to promote > it in a shared hosting environment...Dreamhost installed Camping at some point recently, but they didn''t really say much else other than "hey, we installed Camping". Also, I''m pretty sure that the installed version is out of date compared to the latest release.
Hey Everybody! I was wondering if/how Camping can process more than one request at once (i.e. not what Rails does). I''m fairly new to threads, and I bought a book, and read some of it, and dived into the Camping source... I found some thread stuff but I''m not... entirely sure. So I thought I would ask! RYan.