More deployment strangeness: Capistrano, part 0

As mentioned before, my web/database server infrastructure is becoming more complicated. I need to figure out a way to make things easier and repeatable for me. I’m going to test Ansible for server configuration. I also decided to try Capistrano for website deployment.

Originally, I was thinking of using Deployer. I liked the idea of having a PHP tool to deploy PHP websites, but then I realized I also want to deploy Node.js and Python WSDL sites. (By the way, deploying Python sites using Flask or Django as the web framework looks unusually complicated. More about that later.) For the PHP sites, I wrote a Phing script to collect everything I needed. My plan is for Capistrano to take that bundle and deploy that. We’ll see.

To use Capistrano, I need Ruby. I installed that somewhere when I took the Berkeley MOOC class.

>ruby –version
ruby 2.1.5p211 (2014-11-13 revision 48405)

Wow, that seems old. I’ll update it. After some google searches, I settle on this set of instructions to upgrade ruby. Their process in a nutshell:

  • install home-brew and git
  • install rvm. Over rbenv? Uh, OK.
  • install ruby
  • install any needed gems

Homebrew are already covered. Git works as expected. They also recommend the latest version of the macOS, along with Xcode and the Xcode command line tools. I’ve got that covered, too. Let’s keep moving.

Next: install gpg? What is that? It checks cryptographic security of the rvm download. OK, sure. I installed the security key as described. (When I went through this process on a different machine, I forgot about the security key and did not have any issues with the rvm download.)

Next: download rvm. It looks simple enough. After the installation, I get a notice about two versions of rvm running on my machine. Apparently, I need to either source my .bash_process file or reload a terminal window, which does the same thing. OK. that’s working now.

Next: use rvm to install ruby. Am I seeing things? Why is it installing ruby into my home directory? Well,iIt seems to work. Ruby has the correct version. Final stuff: update bundler and nokigiri using the gem installer.

Everything looks good. Next, Capistrano.

Advertisements

Ruby/Rails training book suggestions

This list was first collected in February 2014, so it could probably stand some updating. My original list says to consider the following books:

I also have a note to myself to ignore the O’Reilly Ruby books. I don’t know why I wrote that note any more.

I also don’t know why the Agile book ( Agile Web Development with Rails 4) is not considered.

I also heard about this website ( http://learnrubythehardway.org/book/intro.html ) which may be added to an updated list.

It’s probably time to update the list.

to me, more interesting stuff

The old laptop is running OS X Lion 10.7.5. It has Python 2.7.1 and Python 3.3.0. It also has Ruby 1.8.7.

I seem to remember I had Ruby 1.9.2 installed in an Ubuntu VM. That VM is not running well. (Something happened in a recent update and I can’t get the updates installed.)

I will definitely need to install JewelryBox for multiple Ruby installs. If I can, I’ll also update Python to 3.3.5, if possible. I can see I already have too many projects running all at the same time. This is not good.

A test for posting from WP

I want to see if I got the setting right for auto notification of new posts in my feeds.

I did a quick check to see where I stood regarding languages. The newer desktop has Mavericks 10.9.2 installed. That means it comes with Python 2.7.5, but not Python 3. However, it also means that it comes with Ruby 2.0.0, which is nice. I think I’ll still search for JewelryBox and install updated and older version of Ruby, but I like knowing that I have Ruby 2 out of the box.

I’ll figure something else out later for Python 3, but most likely, I’ll download and install it … later.

the test has ended.