Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 40 lines (28 sloc) 996 Bytes
#!/usr/bin/env python
# coding: utf-8
import os
from flask_script import Manager, Server
from import create_app
settings = os.path.abspath('./etc/')
if not os.path.exists(settings):
settings = os.path.abspath('./etc/')
if 'JUNE_SETTINGS' not in os.environ and os.path.exists(settings):
os.environ['JUNE_SETTINGS'] = settings
manager = Manager(create_app)
manager.add_option('-c', '--config', dest='config', required=False)
manager.add_command('runserver', Server())
def createdb():
"""Create database for june."""
from june.models import db
def live(port=5000):
from livereload import Server
server = Server(manager.create_app())'assets/*.js', 'make -C assets build')'assets/page/*.js', 'make -C assets build')'assets/stylus', 'make -C assets stylus')
if __name__ == '__main__':