Git Product home page Git Product logo

blog's Introduction

jessebuchanan.ca

This is the source code for jessebuchanan.ca. It is powered by Octopress 2 and deployed on Amazon S3 / CloudFront using the s3_website gem.

Installation

git clone --recursive [email protected]:jbinto/blog.git
cd blog
bundle

Set the AWS credentials. NOTE: Use a restricted IAM role for this!

cp set_aws_credentials.sh.example set_aws_credentials.sh
vi set_aws_credentials.sh
source set_aws_credentials.sh

Upgrading Octopress

See http://octopress.org/docs/updating/

git remote add upstream [email protected]:imathis/octopress.git
git fetch upsream
git merge upstream/master
rake update_source
rake update_style

Resolve all the merge conflicts and commit.

New posts

bundle exec rake new_post["Lorem ipsum"]
subl source/posts

Building

bundle exec rake generate

Previewing

Using pow & powder:

powder link
bundle exec rake watch		# starts Compass to monitor for changes
open http://blog.dev

Without pow:

bundle exec rake preview
open http://localhost:5000

Deploying

Deployment is handled via s3_website.

source set_aws_credentials.sh
s3_website push

Caveats

source/index.html

I have added my own source/index.html, which is a bit of a hack to make the root of the site separate from the Octopress blog.

Note that rake update_source will overwrite source/index.html.

I keep a backup in index.html.jb. After rebuilding the source (e.g. new theme, Octopress upgrade), run:

cp source/index.html.jb source/index.html

Theme as a submodule

The theme .themes/boldandblue is brought in as a git submodule, so I can track it. This brings all of the problems of submodules with it, so be warned.

JDK required for deployment

Note: s3_website requires a JDK as of July 2014, as it is now partially written in Scala.

If you're on OS X and have Homebrew and Cask installed, this is as easy as:

brew cask install java

blog's People

Contributors

axiac avatar bendoerr avatar darkhogg avatar duckpuppy avatar elbowdonkey avatar fhemberger avatar gisikw avatar haacked avatar imathis avatar jakemcc avatar jbinto avatar jbrains avatar lukearmstrong avatar mikl avatar omo avatar parkr avatar pfista avatar pilif avatar pw avatar rslifka avatar rwdaigle avatar rythie avatar samwhited avatar sjml avatar tgray avatar tomhoover avatar treyhunner avatar vyper avatar yous avatar zlu avatar

Watchers

 avatar  avatar

blog's Issues

Double slashes in URLs (/blog//)

robots.txt

https://jessebuchanan.ca/robots.txt

User-agent: *
Disallow: 

Sitemap: https://jessebuchanan.ca/blog//sitemap.xml 

sitemap.xml

https://jessebuchanan.ca/blog/sitemap.xml

<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>
https://jessebuchanan.ca/blog//2014/using-ansible-to-set-up-a-rails-deployment-environment/
</loc>
<lastmod>2014-04-09T09:10:31-04:00</lastmod>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.