Exemplo n.º 1
0
def run_webserver(name, env):
	conf.configure_flapp(env)
	flapp.logger.debug('Running webserver with config: %s'%flapp.config)
	flapp.run(port = flapp.config['PORT'])
Exemplo n.º 2
0
def run_webserver(name, env):
    conf.configure_flapp(env)
    application.logger.debug('Running webserver with config: %s' %
                             application.config)
    application.run()
Exemplo n.º 3
0
from app import flapp, conf
from satoyama.database import manager as db_manager
conf.configure_flapp('production')

from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
import argparse


from satoyama.models import *
from satoyama.database import Base

migrate = Migrate(flapp, Base)
migration_manager = Manager(flapp)
migration_manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
	migration_manager.run()
Exemplo n.º 4
0
from app import flapp, conf
from satoyama.database import manager as db_manager
conf.configure_flapp('development')

from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
import argparse
from satoyama.models import *
from satoyama.database import Base


migrate = Migrate(flapp, Base)
migration_manager = Manager(flapp)
migration_manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
	migration_manager.run()
Exemplo n.º 5
0
def run_webserver(name, env):
    conf.configure_flapp(env)
    flapp.logger.debug('Running webserver with config: %s' % flapp.config)
    flapp.run(port=flapp.config['PORT'])
Exemplo n.º 6
0
def run_webserver(name, env):
	conf.configure_flapp(env)
	application.logger.debug('Running webserver with config: %s'%application.config)
	application.run()