11/3/2013 - 7:32 PM

Octopress Commands

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