2016-10-11 17:45:56 +03:00
|
|
|
"""Run example application."""
|
2016-10-06 22:48:43 +03:00
|
|
|
|
|
|
|
import sys
|
|
|
|
import logging
|
|
|
|
|
2016-12-02 21:59:12 +03:00
|
|
|
from containers import Core, Application
|
2016-09-18 23:00:10 +03:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2016-12-02 21:43:39 +03:00
|
|
|
# Configure platform:
|
2018-01-25 02:06:28 +03:00
|
|
|
Core.config.override({'database': {'dsn': ':memory:'},
|
|
|
|
'aws': {'access_key_id': 'KEY',
|
|
|
|
'secret_access_key': 'SECRET'},
|
|
|
|
'auth': {'token_ttl': 3600}})
|
2016-12-02 21:59:12 +03:00
|
|
|
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
|
2016-10-06 22:48:43 +03:00
|
|
|
|
|
|
|
# Run application:
|
|
|
|
Application.main(uid=sys.argv[1],
|
|
|
|
password=sys.argv[2],
|
|
|
|
photo=sys.argv[3])
|