Hacker Newsnew | past | comments | ask | show | jobs | submit | halbertn's commentslogin

Thanks guys! I figured it out. Instead of using 'run sudo...', I can use the helper function 'sudo' directly. Now the password prompts work correctly.


Thanks for the response guys!

I followed carpal's suggestion and all modifications to my deployment are done in my own deploy.rb script. I guess I have no choice but to deal w/ the numerous password requests.

My only question now is what 'user:group' should I assign to my app? My app is a website that I want publicly accessible so my first inclination is to set the app directory as 'root:root'. However, if I do this, then the deployment script must be run under the root user. Is this a good idea? I was under the impression that deployment should be handled by a separate user other than root.

For example, I want my app to be deployed to the following directory:

/var/www/app

Then, I would set the document_root in my appache setting to:

/var/www/app/current/

It is my understanding that if I want to be completely secure, than that whole directory should be set to the 'root:root' user:group ownership property.

Jd, I look forward to your write up!

Thanks!


sorry...i didnt know that my formatting wouldn't stick. if you do look at the transcript, you'll notice it asking for my ssh key and password a couple of times.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: