CSS Ruby Shell CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
data
helpers
source
.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.md
config.rb

README.md

blog-stage.flatstack.com

[] (https://semaphoreapp.com/fs/blog-flatstack-com)

Source code for http://blog-stage.flatstack.com

Creating posts

  • Create new file inside source direcotry
  • Set correct date and title in the new file name

  • Set correct layout, date and title at the start of the file
---
layout: post
title: Example Article
date: 2012-01-01
---

Development

# Clone the template
git clone git@github.com:fs/static-base.git ~/.middleman/fs-static-base

# Scaffold a project using static-base template
middleman init sitename --template=fs-static-base
cd sitename
bin/bootstrap

Workflow

  1. Start server with bin/server
  2. Make changes in the source folder
  3. Checkout results in the browser on http://localhost:4567

Manual deploy to Github pages

Run bin/deploy

Make sure you have specified correct source/CNAME

Semaphore integration

Test build

You can use Semaphore to make sure you source code will be build successfully.

Add these build commands:

bin/bootstrap
bin/build

Deploy automatically to Github pages

  • Deploy type: Capistrano
  • Deployment Strategy: Manual
  • Deploy commands:
# git identity required for git push
git config --global user.email "firstname.lastname+semaphore@flatstack.com"
git config --global user.name "Semaphore"
bin/deploy
  • SSH key: specify your ssh key or unique per project.