Skip to content

Instantly share code, notes, and snippets.

@dennmart
Created November 11, 2014 03:59
Show Gist options
  • Save dennmart/60788929cf89dde5d720 to your computer and use it in GitHub Desktop.
Save dennmart/60788929cf89dde5d720 to your computer and use it in GitHub Desktop.
Provisioning script for WaniKani to Anki (https://github.com/dennmart/wanikani-to-anki) Vagrantfile
#!/usr/bin/env bash
echo "Updating apt..."
sudo apt-get update -y -qq > /dev/null
echo "Installing required libraries for the app..."
sudo apt-get -y -q install ruby-dev > /dev/null
cd /vagrant
echo "Installing bundler..."
su -c "gem install bundler --no-rdoc --no-ri > /dev/null" root
echo "Installing Ruby gems (this may take a while)..."
bundle install --quiet > /dev/null
echo "Starting up WaniKani To Anki..."
rackup -D
echo "Done! Open your browser and go to http://localhost:9292 and see WaniKani to Anki in action!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment