3 ms·
First of all I didn't know whether to provision my machine with root or not. Scraping through sysadmin resources I found people installing Ruby with the "deploy
by matteodepalo 14y ago
First of all I didn't know whether to provision my machine with root or not. Scraping through sysadmin resources I found people installing Ruby with the "deployer" user and people using root for that task. When I tried installing Ruby with deployer I got many permission errors, but I realize that was caused in large part by my lack of experience with sysadministration.
Also, running processes with runit as non-root requires extra [care][1] and I just wanted to get everything up and improve my scripts AFTER I knew that my setup was viable.
Edit
One more thing: I couldn't install ruby-shadow, which is needed to handle passwords with chef, due to some errors with the version of ruby I had.
[1]: http://smarden.org/runit/faq.html#user http://smarden.org/runit/faq.html#user
- rschmitty 14y agoWith rbenv you can install ruby directly to your deploy user, no sudo required as it installs to your home directory https://github.com/sstephenson/rbenv/wiki/Deploying-with-rbenv https://github.com/sstephenson/rbenv/wiki/Deploying-with-rbe...
- matteodepalo 14y agoThanks, I'll try it as soon as I can :-)
- thibaut_barrere 14y agoYou can deploy the infrastructure with root (or a sudoer), and run the app as a regular user (which is quite often called "deploy" in capistrano recipes).
- calgaryeng 14y agoIf I am deploying an application with "deploy" (i.e. non-priviliged), it is ok to also run Unicorn as deploy? Or should it be run as nobody or www-data ?