hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Park Place is Sure Glossy in Trunk #

by why in inspect

From the latest checkin:

Park Place Trunkshot

Yep, easier. I wouldn’t recommend uploading too many muchobytes through the browser, though. Use an S3 shell, lady.

 gem install camping --source code.whytheluckystiff.net
 gem install mongrel --source code.whytheluckystiff.net
 svn co http://code.whytheluckystiff.net/svn/parkplace/trunk parkplace
 cd parkplace
 bin/parkplace

You’ll also need sqlite3. Follow these instructions carefully.

And it’ll tell ya the default login. Also, if you’re on nonWin: gem install sendfile

The control center will be at localhost:3002/control. But the S3 service itself is at the root.

said on

The only way to get static files (css, img, js) served for me is by doing this:

class CStatic < R '/control/s/(.+)'
    def get(path)
     # ...
     @body = File.read(File.join(ParkPlace::STATIC_PATH,
        path))
    end
end

I assume that this isn’t correct, and this must be done by web server (Mongrel in my case). How can I setup Mongrel (or Lighty) to serve static files ? Please, help me, because I can’t find any hints on google :( ...

said on

Spiffy. Too bad that I can’t get it to run. /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant SlotGet (NameError) from ./parkplace/control.rb:116 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' from ../bin/parkplace:4

said on

martins: The latest Mongrel supports the X-Sendfile header, that’s definitely the swiftest means. Make sure you’ve updated Mongrel from the gem I provided above.

FlashHater: Looks like you’ve got an old parkplace.rb loading. Did you install an older one? Well, deinstall.

said on

Thanks, why. It works !

said on

why: As a matter of fact I had, and once I removed it everything worked perfectly! Thanks alot!

said on

Hello. I get the following (under WinXP sp2), after having followed your instructions, when attempting to upload a file:

Camping Problem! ParkPlace::Controllers::CFiles.POST Errno::EACCES Permission denied – C:/DOCUME1/Maurizio/LOCALS1/Temp/C1616.0 or C:/Documents and Settings/Maurizio/My Documents/rails/parkplace/storage/mp3_/C1616.0: c:/ruby/lib/ruby/1.8/fileutils.rb:501:in `rename’ c:/ruby/lib/ruby/1.8/fileutils.rb:501:in `mv’ c:/ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest’ c:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest0’ c:/ruby/lib/ruby/1.8/fileutils.rb:1375:in `fu_each_src_dest’ c:/ruby/lib/ruby/1.8/fileutils.rb:490:in `mv’ ./lib/parkplace/control.rb:104:in `post’ (eval):22:in `service’ ./lib/parkplace/control.rb:15:in `service’ c:/ruby/lib/ruby/gems/1.8/gems/camping-1.4/lib/camping/session.rb:112:in `service’ (eval):42:in `run’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel/camping.rb:36:in `process’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:425:in `process_client’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:424:in `process_client’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:495:in `run’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:494:in `run’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:483:in `run’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:774:in `run’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:772:in `run’ ./lib/parkplace.rb:48:in `cloaker_’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:658:in `listener’ ./lib/parkplace.rb:44:in `cloaker_’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4-mswin32/lib/mongrel.rb:616:in `initialize’ ./lib/parkplace.rb:43:in `serve’ * bin/parkplace:28

said on

maurizio: Let me help you. ParkPlace stores its junk in a directory called storage off the working directory. Make sure ParkPlace has rights to do that.

said on

After quite an ordeal, I FINALY got park place to run. Unfortinatly, the stylesheet and graphics won’t load (probably because I don’t have any rewrite rules in place and I’ve hacked some stuff up.

said on

why: I set the folder to writeable (via the properties panel in windows), but it is reset as read-only continuosly. Also, after having set it to read-write, the bucket I’m going to create via the parkplace interface, becomes a subfolder of the storage folder and is created read-only too. BTW , for me too the .css file doesn’t load. Thank you for your code and support.

said on

maurizio & FlashHater do you both have successfuly installed mongrel v0.3.12.5 like this:
gem install mongrel --source code.whytheluckystiff.net ?
This version is not available through standart gems servers yet.

said on

martins: C:\Documents and Settings\Maurizio>gem install mongrel—source code.whythelucky stiff.net Attempting local installation of ‘mongrel’ Local gem file not found: mongrel*.gem Attempting remote installation of ‘mongrel’ ERROR : While executing gem … (Gem::RemoteSourceException) HTTP Response 403

said on

Now I can reach the code but I can’t compile the native extensions on Windows … Has someone a binary version readily available? Thank you.

C:\Documents and Settings\Maurizio>gem install mongrel—source code.whythelucky stiff.net Attempting local installation of ‘mongrel’ Local gem file not found: mongrel*.gem Attempting remote installation of ‘mongrel’ Updating Gem source index for: http://code.whytheluckystiff.net Install required dependency daemons? [Yn] y Building native extensions. This could take a while… [snip]

said on

maurizio: You’ll need to wait until Zed releases the next Windows release of Mongrel. Until then, Parkplace isn’t supported on the platform. I’m sure it’ll be just a day or two.

said on

why: Thank you! I’m looking forward to the new mongrel release for Windows, and to play with your code :)

said on

Hello. I installed under Ubuntu (Dapper) Park Place. I followed the instructions given at the RedHanded site. I get the following mongrel error when launching the application:

  • Please login in with `admin’ and password `pass@word1’
  • You should change the default password or delete the admin at soonest chance!/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:584:in `register’: undefined method `resolve’ for nil:Mongrel::URIClassifier (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:720:in `uri’ from /usr/local/lib/site_ruby/1.8/parkplace.rb:45:in `cloaker_’ from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:703:in `listener’ from /usr/local/lib/site_ruby/1.8/parkplace.rb:44:in `cloaker_’ from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:661:in `initialize’ from /usr/local/lib/site_ruby/1.8/parkplace.rb:43:in `serve’ from /usr/bin/parkplace:28

I did some research attempting to fix this issue, but without luck.

said on

I managed to compile the native extensions for mongrel on ubuntu based on some feedback I got from Zed on the rails mailing list, but still no joy in running parkplace … The system seems working but I get no CSS and it seems I cannot send a file with a permission different form ‘private’, even when I select ‘public read’, etc. Have you any suggestion on how to proceed? Thank you.

  • Please login in with `admin’ and password `pass@word1’
  • You should change the default password or delete the admin at soonest chance!
  • You have sendfile installed, will use that to serve files.
  • Running 0.0.0.0:3002 listener.
  • ParkPlace example is running at http://localhost:3002/ ERROR : No such file or directory – /usr/local/lib/site_ruby/static/js/prototype.js /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel/camping.rb:51:in `size’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel/camping.rb:51:in `process’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:470:in `process_client’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:469:in `process_client’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:540:in `run’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:539:in `run’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:528:in `run’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:819:in `run’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:817:in `run’ /usr/local/lib/site_ruby/1.8/parkplace.rb:48:in `cloaker_’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:703:in `listener’ /usr/local/lib/site_ruby/1.8/parkplace.rb:44:in `cloaker_’ /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:661:in `initialize’ /usr/local/lib/site_ruby/1.8/parkplace.rb:43:in `serve’ ./bin/parkplace:28
said on

It appears that you have installed ParkPlace (using setup.rb or something.) I’d recommend just running ParkPlace from its own directory for now.

  svn co http://code.whytheluckystiff.net/svn/parkplace/trunk parkplace
  cd parkplace
  bin/parkplace

I have some patches to remedy this situation, but I’m not done thinking about… if they solve the problem… in the manner I’d like them to.

Comments are closed for this entry.