Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markpundsack/jekyll-example-with-heroku-buildpack
Sample Jekyll site for Heroku's Cedar stack with custom Jekyll buildpack
https://github.com/markpundsack/jekyll-example-with-heroku-buildpack
Last synced: 3 months ago
JSON representation
Sample Jekyll site for Heroku's Cedar stack with custom Jekyll buildpack
- Host: GitHub
- URL: https://github.com/markpundsack/jekyll-example-with-heroku-buildpack
- Owner: markpundsack
- Created: 2011-10-10T05:34:36.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-16T03:13:37.000Z (almost 13 years ago)
- Last Synced: 2024-05-15T04:31:14.974Z (6 months ago)
- Homepage:
- Size: 158 KB
- Stars: 37
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
Creating a Jekyll App with a Custom Jekyll Buildpack on Heroku Cedar (from GitHub)
===Setup Jekyll
---Install the jekyll gem
gem install jekyll
Clone the git repository
---git clone [email protected]:markpundsack/jekyll-heroku.git
cd jekyll-heroku
Let's test it locally
---jekyll --server --auto
Open your browser and go to http://localhost:4000.
You should see "Hello World".
Deploying to Heroku
---Install the Heroku gem
gem install heroku
Create a Heroku app using our custom buildpack
heroku create --stack cedar --buildpack http://github.com/markpundsack/heroku-buildpack-jekyll.git
Deploy!git push heroku master
Test it:
heroku open
Creating a Jekyll App with a Custom Jekyll Buildpack on Heroku Cedar (Manually)
===Setup Jekyll
---Install the jekyll gem.
gem install jekyll
Create the site structure
---Create the app directory
mkdir jekyll-app
and create the following files:
cd jekyll-app
touch _config.yml
touch index.html
mkdir _posts
mkdir _layouts
touch _layouts/default.html"Hello World" Jekyll
---Let's create a Layout. Open _layouts/default.html and add:
{{ content }}
Now we need an index page. Open index.html and add:
---
layout: default
title: Jekyll Example Site
---
Hello World
Let's test it locally:
jekyll --server --auto
Open your browser and go to http://localhost:4000
You should see "Hello World"
Deploying to Heroku
---First, install the Heroku gem
gem install heroku
Since Cedar will run Jekyll and generate the _site files automatically, they don't need to be checked into git
echo _site >> .gitignore
Create a git repo and commitgit init .
git add .
git commitCreate a Heroku app using our custom buildpack
heroku create --stack cedar --buildpack http://github.com/markpundsack/heroku-buildpack-jekyll.git
Deploy!
git push heroku master
Test it:
heroku open