Ruby on Rails Sunday, July 3, 2011

Hi,
When running my app in development with WEBrick in daemon mode I get the following error when trying to upload a file:

Errno::ENOENT in UploadController#create

No such file or directory - public/data/upload/google

Rails.root: /home/resource_portal/website

Application Trace | Framework Trace | Full Trace
app/models/upload.rb:29:in `initialize' app/models/upload.rb:29:in `open' app/models/upload.rb:29:in `filesave' app/controllers/upload_controller.rb:16:in `create' rake-0.8.7/ruby/1.9.1/gems/actionpack-3.0.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' rake-0.8.7/ruby/1.9.1/gems/actionpack-3.0.3/lib/abstract_controller/base.rb:151:in `process_action' ...  I do not get this error when not running in daemon mode. I've googled a bit but can't find a reason. Does anyone have any ideas?  Also the reason I want to run in Daemon mode is because I have to host my app on a uni virtual machine, and start the server after logging in with ssh. When I close the ssh connection the server (if not running in background) also seems to get killed.  Any ideas as to how I may be able to work around this?  Thanks, Jen.  

No comments:

Post a Comment