Example #1
0
"""
    Base terminal command manager.

    Define terminal commands here to run actions
"""
from flask_script import Manager, Server
from flask_sqlalchemy import SQLAlchemy
# from flask_migrate import Migrate, MigrateCommand
from system.init import initialize_app
# from system.init.database import create_database
import subprocess
import os

app = initialize_app()

manager = Manager(app)

# implement later, just creates database, needs to have mysql server installed 
# @manager.option('-db', '--database', help='database name')
# def create_db(database):
#   create_database(app, database)

manager.add_command('runserver', Server(host='127.0.0.1'))

if __name__ == "__main__":
    manager.run()
Example #2
0
"""
    Base terminal command manager.

    Define terminal commands here to run actions
"""
from flask.ext.script import Manager, Server
from flask.ext.sqlalchemy import SQLAlchemy
from system.init import initialize_app

app = initialize_app()

manager = Manager(app)

manager.add_command('runserver', Server(host='127.0.0.1', port='5001'))

if __name__ == "__main__":
    manager.run()
Example #3
0
from system.init import initialize_app
import subprocess
application = initialize_app()

if __name__ == "__main__":
	application.run(host='52.39.193.112')
Example #4
0
"""
    Base terminal command manager.

    Define terminal commands here to run actions
"""
from flask.ext.script import Manager, Server
from system.init import initialize_app
import subprocess

manager = Manager(initialize_app())

manager.add_command('runserver', Server(host='127.0.0.1'))

if __name__ == "__main__":
    manager.run()
Example #5
0
from system.init import initialize_app
import subprocess
application = initialize_app()

if __name__ == "__main__":
	application.run(host='0.0.0.0',port=3001)
Example #6
0
"""
    Base terminal command manager.

    Define terminal commands here to run actions
"""
from flask_script import Manager, Server
from system.init import initialize_app
import subprocess

manager = Manager(initialize_app())

manager.add_command('runserver', Server(host='127.0.0.1'))

if __name__ == "__main__":
    manager.run()