Skip to content

Instantly share code, notes, and snippets.

@warolv
Last active December 27, 2015 08:09
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 warolv/7293839 to your computer and use it in GitHub Desktop.
Save warolv/7293839 to your computer and use it in GitHub Desktop.
Octopress Commands
rake generate # Generates posts and pages into the public directory
rake watch # Watches source/ and sass/ for changes and regenerates
rake preview # Watches, and mounts a webserver at http://localhost:4000
rake 'new_post["Building Form Ajax Validator"]' # Generate new post
# Create a new page
rake new_page[super-awesome]
rake new_page[super-awesome/page.html]
# Push to origin on Bitbucket
git push origin master
# Pull from octopress on Github
git pull octopress master
# Deploy to Amazon S3
s3cmd sync --acl-public --reduced-redundancy public/* s3://www.example.com/
rake deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment