Created
January 18, 2014 23:25
-
-
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!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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