mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 06:32:11 -05:00
Source the configuration from an environment file, this way it is similar to how the aws environment works
16 lines
390 B
Python
16 lines
390 B
Python
from flask.ext.script import Manager, Server
|
|
from flask_migrate import Migrate, MigrateCommand
|
|
from app import create_app, db
|
|
from credstash import getAllSecrets
|
|
|
|
secrets = getAllSecrets(region="eu-west-1")
|
|
|
|
application = create_app()
|
|
|
|
manager = Manager(application)
|
|
migrate = Migrate(application, db)
|
|
manager.add_command('db', MigrateCommand)
|
|
|
|
if __name__ == '__main__':
|
|
manager.run()
|