# Reconcile deploy and daemon w/ deprec

**URL:** <https://www.ruby-forum.com/t/reconcile-deploy-and-daemon-w-deprec/122450>\
**Category:** Deployment\
**Created:** [December 7, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/reconcile-deploy-and-daemon-w-deprec/122450 "2007-12-07T18:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5e925/32.png) [@vince](https://www.ruby-forum.com/u/vince)\
**Post date:** [December 7, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/reconcile-deploy-and-daemon-w-deprec/122450/1 "2007-12-07T18:22:39Z")

</div>

I’m used the deprec gem to set up capistrano, subversion, apache, etc  
It works great except that my rails app has a file upload feature that  
doesn’t work due to a permissions error. On a server where apache and  
mongrel are both running as www-data it works fine but not on the server  
where apache runs as daemon, mongrel runs as my app name and the  
permissions for the directory are for deploy. I believe that’s was  
causing my problem.

How can I reconcile that? I tried adding daemon to the deploy group and  
vice versa but I think it’s b/c mongrel is still running as app\_appname  
even though I put this in my deploy.rb:

set :mongrel\_user, ‘www-data’

Any tips would be much appreciated.

Thanks,  
Vince
