diff --git a/.env.yaml.example b/.env.yaml.example new file mode 100644 index 0000000..032be1f --- /dev/null +++ b/.env.yaml.example @@ -0,0 +1,15 @@ +APP: + APP_SLUG: "this is the slug of your deployed app" + PRIVATE_KEY_PATH:"the path to the pem file" + PERSONAL_TOKEN: "XXXXXXX" +MYSQL: + HOST: "127.0.0.1" + PORT: 3306 + USER: "your username" + PASSWORD: "your password" + DB: "pr-latency-bot" +SERVICE: + PORT: 4567 + REMIND_EVERY_HOURS: 24 + SCHEDULER: + CYCLE_MINUTES: 60 \ No newline at end of file diff --git a/alembic.ini b/alembic.ini new file mode 100644 index 0000000..4b56a2e --- /dev/null +++ b/alembic.ini @@ -0,0 +1,42 @@ +# A generic, single database configuration. + +[alembic] +# path to migration scripts +script_location = ./app/db/alembic + +# sqlalchemy.url = driver://user:pass@localhost/dbname configured in the .env.yaml file + +# Logging configuration +[loggers] +keys = root,sqlalchemy,alembic + +[handlers] +keys = console + +[formatters] +keys = generic + +[logger_root] +level = WARN +handlers = console +qualname = + +[logger_sqlalchemy] +level = WARN +handlers = +qualname = sqlalchemy.engine + +[logger_alembic] +level = INFO +handlers = +qualname = alembic + +[handler_console] +class = StreamHandler +args = (sys.stderr,) +level = NOTSET +formatter = generic + +[formatter_generic] +format = %(levelname)-5.5s [%(name)s] %(message)s +datefmt = %H:%M:%S