Skip to content

Instantly share code, notes, and snippets.

@rubillionaire
Last active August 29, 2015 14:02
Show Gist options
  • Save rubillionaire/85f7e6b300cebd40f6fd to your computer and use it in GitHub Desktop.
Save rubillionaire/85f7e6b300cebd40f6fd to your computer and use it in GitHub Desktop.
Install rbenv, ruby, sass, jekyll, foreman, bundler.

Web Project Setup

Web projects at Media use Jeyll for building HTML, Sass for CSS pre-processing, and Browserify for building JavaScript.

Install Dependencies

The following are a list of dependencies required for running and editing Media's web projects on your computer.

Jekyll Sass Foreman

Download and double-click to run this script. It will install Jekyll, Sass, and Foreman. The current toolchain of of Media's web projects.

Clone the repository

Using a git client add the url git url to your project. Or from the command line.

git clone <git-url>

work.command

Double click work.command in the root directory.

This will launch a process for Jekyll and Sass, as well as a new browser instance with the URL of the developement website.

To do work in the future, simply double click the work.command file.

#!/usr/bin/env bash
## Requires
## - XCode command line tools
## - homebrew
## Install rbenv, add to the path
## -
brew install rbenv ruby-build rbenv-gem-rehash
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
## Link openssl
## -
brew link --force openssl
## Install rubies
## -
rbenv install 2.1.2
rbenv rehash
rbenv global 2.1.2
## Install and gems
## -
gem install bundler
gem install sass
gem install jekyll
gem install foreman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment