-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from freezingsaddles/upgrade-database-libraries
upgrade database libraries
- Loading branch information
Showing
9 changed files
with
111 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
# Local config files | ||
.env* | ||
*.cfg | ||
|
||
.env* | ||
/data/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
*.py[cod] | ||
__pycache__/ | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
*.egg | ||
*.egg-info/ | ||
.Python | ||
env/ | ||
.eggs/ | ||
.installed.cfg | ||
.venv/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
venv/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# A generic, single database configuration. | ||
|
||
[alembic] | ||
# path to migration scripts | ||
script_location = freezing.model:migrations | ||
|
||
# template used to generate migration files | ||
# file_template = %%(rev)s_%%(slug)s | ||
|
||
# max length of characters to apply to the | ||
# "slug" field | ||
#truncate_slug_length = 40 | ||
|
||
# set to 'true' to run the environment during | ||
# the 'revision' command, regardless of autogenerate | ||
# revision_environment = false | ||
|
||
# This is read from Flask config instead, | ||
# or set the SQLALCHEMY_URL environment variable | ||
# sqlalchemy.url = driver://user:pass@localhost/dbname | ||
|
||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,49 +3,48 @@ | |
|
||
DEBUG=true | ||
|
||
# The URL to the database. Note that the pymysql driver must be explicitly specified. | ||
SQLALCHEMY_URL=mysql+pymysql://freezing:[email protected]/freezing?charset=utf8mb4&binary_prefix=true | ||
|
||
# Configuration for the Strava client. These settings come from your App setup. | ||
STRAVA_CLIENT_ID=? | ||
STRAVA_CLIENT_SECRET=? | ||
STRAVA_ACTIVITY_CACHE_DIR=/path/to/cache/activities | ||
BEANSTALKD_HOST=127.0.0.1 | ||
BEANSTALKD_PORT=11300 | ||
|
||
# Visit https://www.visualcrossing.com/ for your own | ||
VISUAL_CROSSING_API_KEY=? | ||
VISUAL_CROSSING_CACHE_DIR=/path/to/cache/visualcrossing | ||
DATADOG_API_KEY=? | ||
DATADOG_APP_KEY=? | ||
DATADOG_HOST=127.0.0.1 | ||
DATADOG_PORT=8125 | ||
|
||
# Comma-separated list of Strava Clubs that are the participating teams. | ||
TEAMS=1234,1235 | ||
ENVIRONMENT=localdev | ||
|
||
# Comma-separated list of teams that should be included for overall stats but are not "playing the game" | ||
OBSERVER_TEAMS=324147 | ||
# Any keywords to match on to exclude rides (default: "#NoBAFS"). Note: these are not case-sensitive. | ||
EXCLUDE_KEYWORDS='#NoBAFS' | ||
|
||
# The main team id. If people join this before they join the competition teams, they will get on the leaderboards. | ||
MAIN_TEAM=324147 | ||
MAIN_TEAM=1 | ||
# Comma-separated list of teams that should be included for overall stats but are not "playing the game" | ||
OBSERVER_TEAMS=2 | ||
# Comma-separated list of Strava Clubs that are the participating teams. | ||
TEAMS=3,4 | ||
|
||
# The competition title | ||
COMPETITION_TITLE=BikeArlington Freezing Saddles 2019 | ||
# The URL to the database. Note that the pymysql driver must be explicitly specified. | ||
SQLALCHEMY_URL='mysql+pymysql://freezing:[email protected]/freezing?charset=utf8mb4&binary_prefix=true' | ||
|
||
# The start date of the competition -- WITH TIME ZONE | ||
START_DATE=2020-01-01T00:00:00-05:00 | ||
|
||
START_DATE=2025-01-01T00:00:00-05:00 | ||
# The end date of the competition -- WITH TIME ZONE. | ||
# The sync will stop fetching rides after this date (plus grace period) | ||
END_DATE=2020-03-19T23:59:59-04:00 | ||
|
||
# The hostname for a beanstalkd server. | ||
BEANSTALKD_HOST=localhost | ||
|
||
# The port for beanstalkd server (default 11300) | ||
BEANSTALKD_PORT=11300 | ||
END_DATE=2025-03-19T23:59:59-04:00 | ||
|
||
# How long (days) can people upload rides after competition> | ||
UPLOAD_GRACE_PERIOD= | ||
STRAVA_ACTIVITY_CACHE_DIR=data/cache/activities | ||
|
||
# Any keywords to match on to exclude rides (default: "#NoBAFS"). Note: these are not case-sensitive. | ||
EXCLUDE_KEYWORDS=#NoBAFS | ||
# Configuration for the Strava client. These settings come from your App setup. | ||
STRAVA_CLIENT_ID=STRAVA_CLIENT_ID | ||
STRAVA_CLIENT_SECRET=STRAVA_CLIENT_SECRET | ||
|
||
# Python Time zone for competition days. | ||
# See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | ||
TIMEZONE=America/New_York | ||
TIMEZONE=TIMEZONE:-America/New_York | ||
|
||
# How long (days) can people upload rides after competition? | ||
UPLOAD_GRACE_PERIOD=7 | ||
|
||
# Visit https://www.visualcrossing.com/ for your own API key | ||
VISUAL_CROSSING_API_KEY=? | ||
VISUAL_CROSSING_CACHE_DIR=data/cache/weather |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters