We have a few different servers setup to handle our flagship product. We have a development server, a demo/staging server, and a production server. All of these run on some variant of Debian or Ubuntu.
In order to manage the creation of new clients, compress backups, list statistical data, and whatnot; I created a new Git repository (hosted on GitHub) that contains a bunch of Rake tasks. I then used rvm to install Ruby and bundler to install the necessary gems, and I use rvmsudo rake my_task
to execute the tasks.
This worked really well until I had a new developer join the project. He's having to download rvm, install ruby, and install all of the proper gems to get it to work, and it's been a pain for him to figure out whether to use sudo
or rvmsudo
because it's setup slightly differently on each machine.
So, I'm wanting to kinda start fresh and re-install everything on every server. Ideally, I want my developers to clone the Git repo to their home directory (in case they are modifying the rake tasks themselves) and execute rake tasks using sudo OR rvmsudo. I want to standardize it so that they don't have to guess which one it is.
I remember having some trouble getting the latest versions of Ruby, Rails and Rake installed with the default apt-get
package manager which is why I switched to using rvm, but it looks like that might have been a poor choice.
So, does anyone know of a great guide or have any pointers on how to setup Ruby/Rails/Rake on a server so that all developers with sudo access can execute the commands and not have to worry about installing anything?
Thanks so much!