Using typical Grunt deployment scripts works fine, except there is a trick to run a bundle update using the Gems installed via a single user RVM install:
command: "[[ -s \"/home/username/.rvm/scripts/rvm\" ]] &&
source \"/home/username/.rvm/scripts/rvm\" &&
cd /path/to/project/ && bundle update"
This runs the RVM shell init commands saved to your shell’s configuration that are not loaded with commands such as those invoked by Grunt. If your Rails project is being served via NGinx, you can use this Grunt task to restart the web server on deployment.
The following command worked for me to install the nokogiri gem with my Macports infrastructure:
gem install nokogiri -- --use-system-libraries
This is pretty easy to do, and is covered well in articles such as this one. However, I made the mistake of powering down my machine after removing my bad drive from the array. My thinking was that it would be easier to perform the surgery this way. In retrospect I should have simply unmounted my array (so that there was a greater margin of error in pulling out a wrong cable, etc).
At any rate, the machine wouldn’t boot Ubuntu after taking the drive out of the array because of mdadm’s degraded state. I was able to finish this job while booting into Ubuntu’s recovery mode. Note that if you reboot while recovery is still in progress you’ll be faced with this same issue. The slight problem this presented was that my monitor wasn’t connected to my PC, making navigating into recovery mode difficult.
Most musicians seem to hate the genres and having their music put into some sort of category. They feel that these genres/labels shape perceptions, encourage prejudice, and put their music into a restrictive box. I believe that these genres and their gazillion sub-genres are really problematic to jazz and other kinds of music, and not only that, are arguably obsolete.
Read more »
The following cut-and-pasteable instructions will bring up a Vagrant VM hosting a Rails project Read more »
The following will generate a listing of installed Debian/Ubuntu packages, and will install packages from that list on another machine. Just make sure you have the same sources set in /etc/apt/sources.list:
dpkg --get-selections > package_list
scp package_list to your destination machine, and:
dpkg --set-selections < package_list
apt-get -u dselect-upgrade
to install these packages.
This blog consists of geeky computer-related content, as well as posts pertaining to music and jazz in particular. I realize that this makes for a rather odd mix. To make things easier, if you are interested in my music posts and don’t care about the computer stuff, you can find these posts here.
Throughout this series I will explore what successful jazz artists (or artists typically tethered to the label) such as Esperanza Spalding, Trombone Shorty, Rebirth Brass Band, Medeski Martin and Wood, John Scofield, Snarky Puppy, Nicholas Payton, Roy Hargrove, Quincy Jones, Herbie Hancock, Wynton Marsalis, and others have in common as far as their success is concerned, and whether this can be reproduced in some manner… Read more »
I needed to retire a WordPress widget to a group of sites in my WordPress network, and I wanted to do this programmatically since it would have taken a considerable amount of time to do this manually to each individual site within my WordPress network. Here is how I did this… Read more »
If you are not able to boot with UNetbootin’s “test memory” boot option (which boots into Memtest86), try selecting the “Test Memory” option, pressing tab, and removing “initrd=/ubninit” from the boot line.