Skip to content

Instantly share code, notes, and snippets.

@mariolopjr
Created January 18, 2014 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariolopjr/8498213 to your computer and use it in GitHub Desktop.
Save mariolopjr/8498213 to your computer and use it in GitHub Desktop.
Automates publishing Octopress content, just do "publish" and the script will do the rest!
#!/bin/bash
#
# publish.sh
#
# Mario Lopez (http://techsym.com) @cubanresourceful
# Use and modify freely, attribution appreciated
#
# Generates and deploys an Octopress instance for you.
#
# Usage
# $ publish
#
#
# Variables
#
# Location to your Octopress installation root
StrOctopressRoot="$HOME/Documents/Projects/techsym.com/octopress"
#
# Script Execution
#
# Change to the directory that houses your Octopress instance
cd $StrOctopressRoot
# Generates and deploys the Octopress instance
rake integrate
rake gen_deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment