A simple solution combining the simplicity of Middleman with updateable content through Contentful hosted on Heroku
To get started clone the project and add ENV for:
CONTENTFUL_ACCESS_TOKEN="<contentful access token>"
CONTENTFUL_SPACE="<contentful space id>"
CONTENTFUL_MOCK_ID="<content type id>"
GIT_USER="<git username>"
GIT_REPO="<git repo>"
GIT_BRANCH="<git branch>"
# heroku auth:token
HEROKU_AUTH="<oAuth-token>"
HEROKU_APP="<app name>"
This can be done in an .env
file for your local dev environment.
bundle install
middleman contentful
middleman
bundle install
rackup
More information on setup can be found here