Skip to content

pbougie/mac-dev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Instructions for compiling/installing your own web development environment in macOS; primary packages include:

  • Apache
  • Git
  • GraphicsMagick
  • Memcached
  • MongoDB
  • MySQL
  • Node.js
  • PHP
  • Redis
  • Ruby

This website is built with Middleman.

Environment Variables

Environment variables required to build and deploy the website:

  • GAUGES: Tracking code for Gauges.

Install

  • Install Ruby (if missing)
  • Install gems : bundle install --path .bundle

Rake

Make sure the aforementioned environment variables are available before generating the website.

  • Build website: bundle exec rake build
  • Watch website for changes: bundle exec rake guard
  • Launch preview server: bundle exec rake preview

Deploy

Push to GitHub to deploy to GitHub Pages.

  • Build: GAUGES=<site-id> bundle exec rake build (replace with Gauge’s site ID.)
  • Stage: git add .
  • Commit: git commit -m "Build website for GitHub Pages"
  • Deploy: git push

Message

To add a message at the top of any page, add a frontmatter variable named message to any Markdown source file.


© Patrick Bougie. All Rights Reserved.
Please do not reproduce without written consent.

Languages