Skip to content

Commit ba925a0

Browse files
authored
add release (#98)
1 parent 65935f4 commit ba925a0

File tree

3 files changed

+5
-40
lines changed

3 files changed

+5
-40
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
.PHONY: run test db
22

3-
db:
4-
pipenv run python markov/makedb.py
3+
migrate:
54
pipenv run alembic upgrade head
65

6+
db:
7+
pipenv run python -m markov.makedb
8+
79
run:
810
pipenv run python -m markov.markov
911

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
release: alembic upgrade head
12
worker: python -m markov.markov

alembic.ini

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,6 @@
1-
# A generic, single database configuration.
2-
31
[alembic]
4-
# path to migration scripts
52
script_location = migrations
63

7-
# template used to generate migration files
8-
# file_template = %%(rev)s_%%(slug)s
9-
10-
# timezone to use when rendering the date
11-
# within the migration file as well as the filename.
12-
# string value is passed to dateutil.tz.gettz()
13-
# leave blank for localtime
14-
# timezone =
15-
16-
# max length of characters to apply to the
17-
# "slug" field
18-
#truncate_slug_length = 40
19-
20-
# set to 'true' to run the environment during
21-
# the 'revision' command, regardless of autogenerate
22-
# revision_environment = false
23-
24-
# set to 'true' to allow .pyc and .pyo files without
25-
# a source .py file to be detected as revisions in the
26-
# versions/ directory
27-
# sourceless = false
28-
29-
# version location specification; this defaults
30-
# to migrations/versions. When using multiple version
31-
# directories, initial revisions must be specified with --version-path
32-
# version_locations = %(here)s/bar %(here)s/bat migrations/versions
33-
34-
# the output encoding used when revision files
35-
# are written from script.py.mako
36-
# output_encoding = utf-8
37-
38-
#sqlalchemy.url = driver://user:pass@localhost/dbname
39-
40-
41-
# Logging configuration
424
[loggers]
435
keys = root,sqlalchemy,alembic
446

0 commit comments

Comments
 (0)