Commit 1d004f92 authored by Nicholas J Anderson's avatar Nicholas J Anderson

Reimplemented Frozen Flask and CI

parent 20e1a68c
*.sw*
*.pyc
*~
srctweb/website/build/
.venv
.virtualevn
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/octopress
image: python:2
pages:
script:
- pip install -r requirements.txt
- python srctweb/srctweb.py build
artifacts:
paths:
- srctweb/website/build/
only:
- master
......@@ -7,3 +7,4 @@ argparse==1.2.1
gunicorn==18.0
itsdangerous==0.23
wsgiref==0.1.2
Frozen-Flask==0.11
#!flask/bin/python
from website import website
from website import freezer
import sys
if __name__ == '__main__': ## This is for debugging use only.
if len(sys.argv) > 1 and sys.argv[1] == "build":
freezer.freeze()
sys.exit();
website.run(debug=True)
## This is for execution via gunicorn.
......
from flask import Flask
from flask_frozen import Freezer
from flask.ext.gravatar import Gravatar
website = Flask(__name__)
freezer = Freezer(website)
from website import views
# initialize gravatar defaults
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment