Skip to content

Instantly share code, notes, and snippets.

@pydanny
Last active March 21, 2018 22:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pydanny/09dcb20a5e75682f13b3e5cbbda2bfaf to your computer and use it in GitHub Desktop.
Save pydanny/09dcb20a5e75682f13b3e5cbbda2bfaf to your computer and use it in GitHub Desktop.
How mountain will work

First, get the template, which will include a app.py module.

cookiecutter gh:pydanny/mountain

Second, get the package that includes dependencies like Flask, markdown2, etc

cd <project-name>
pip install mountain

Third, add some markdown files, that follow a specific pattern (documented soon)

touch pages/about.md
touch posts2018/what_is_mountain.md

Fourth, run locally:

python app.py

Fifth, deploy to zappa:

pip install zappa
zappa deploy
{
"filename": "posts2018/02-21-what_is_mountain.md",
"title": "What is Mountain",
"date": "2018-03-21 20:00",
"tags": [
"python",
"flask",
"mountain",
],
"category": "flask",
"description": "Mountain is a Flask-powered, Zappa-deployed platform for hosting sites written in Markdown",
"slug": "what-is-mountain"
}
---
Mountain is a Flask-powered, Zappa-deployed platform for hosting sites written in Markdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment