Closed drewdeponte closed 12 years ago
Technically its not the greatest thing that this command requires root. It may be better to have Octopusci basically have its own user account on production servers and have it install its workspace and configuration files relative to that home directory rather than in /etc/octopusci
. Then the octopusci user could be setup as the user that would run the tentacles and jobs. This seems like a much better idea from a security stand point. Beyond that it would prevent this sudo bundle issue for devs.
However, it would still require sudo on some command to create the initial user account and do that setup. In order to run sudo commands in dev simply use rvmsudo instead of sudo that way it knows about the gems in the rvm gem set.
rvmsudo
is the magic for in dev. The problem shouldn't exist in production.
It seems there is some sort of issue using sudo in devel to run the octopusci-skel command. It looks to be some how related to bundler. The output of the failure looks as follows:
For some reason it can't seem to find the gems that were installed by bundler when I use sudo for some reason.