from flask_script import Manager

from config.config import app
# from mailchimp.redis_init import init_redis_with_mailchimp

manager = Manager(app)

@manager.command
def run_local():
    #init_redis_with_mailchimp(redis_server)
    app.run(debug=True)

@manager.command
def run_production():
    # TO-DO
    pass
    
if __name__ == '__main__':
    manager.run()
    
from flask_script import Manager
from config.config import app

manager = Manager(app)

@manager.command
def run_local():
    app.run(debug=True)

@manager.command
def run_test():
    # To-Do
    pass

@manager.command
def run_production():
    # TO-DO
    pass
    
if __name__ == '__main__':
    manager.run()
    
Add flask-script package to manage deploys
Add flask-script package to manage deploys
