There are just a couple of things you'll have to do in advance, in order to get your environment ready to be able to follow along. This takes about 30 minutes (of mostly waiting) so be sure to carve out some time to do this.
VirtualBox and Vagrant are two tools that we'll be using to emulate a production environment on your local machine. Install the latest version of VirtualBox from https://www.virtualbox.org/wiki/Downloads. Install Vagrant from http://www.vagrantup.com/downloads.html.
Once VirtualBox and Vagrant are installed, issue the following commands from Terminal:
vagrant box add precise32 http://files.vagrantup.com/precise32.box
This command will download a virtual machine that will take about 1GB of disk space in total, so make sure you've got plenty of space and go grab lunch while you do this!
Once this is done, grab the project we'll be deploying:
git clone https://github.com/eng/jeffs-store.git
And finally, cd into the jeffs-store directory you just created and:
vagrant up
When this is done, you might get this message:
stdin: is not a tty
No worries – this is normal.
Next, SSH into the virtual machine you just created by issuing this command:
vagrant ssh
Then, copy-and-paste the following long command and hit Enter:
sudo apt-get update && sudo env DEBIAN_FRONTEND=noninteractive apt-get upgrade --force-yes -qyu
Finally, type "exit" to end the SSH session and get back to your machine.
exit