-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,374 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
* | ||
!mailer | ||
!now.json | ||
!Pipfile | ||
!Pipfile.lock | ||
!Procfile |
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,11 @@ | ||
FLASK_APP = 'mailer.wsgi:application' | ||
FLASK_ENV = 'development' | ||
SERVER_NAME = 'localhost:5000' | ||
PREFERRED_URL_SCHEME = 'http' | ||
SECRET_KEY = 'secret' | ||
TO_EMAIL = 'me@domain.com' | ||
TO_NAME = 'Me' | ||
CORS_ORIGINS = 'https://domain.com' | ||
MAILER_SERVICE = 'sendgrid' | ||
SENDGRID_API_KEY = 'key' | ||
SENDGRID_SANDBOX = 'false' |
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,27 @@ | ||
dist: xenial | ||
|
||
language: python | ||
python: | ||
- "3.7" | ||
|
||
services: | ||
- docker | ||
|
||
install: | ||
- pip install pipenv coveralls | ||
- pipenv install --dev | ||
|
||
script: | ||
- pipenv run inv qa | ||
- pipenv run coveralls | ||
|
||
deploy: | ||
- provider: script | ||
script: pipenv run inv docker-deploy -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" -r "mailer" -t "$TRAVIS_TAG" | ||
on: | ||
tags: true | ||
- provider: script | ||
script: pipenv run inv docker-deploy -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" -r "mailer" -t "latest" | ||
on: | ||
tags: false | ||
all_branches: true |
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,20 @@ | ||
FROM python:3.7-alpine | ||
|
||
RUN set -ex && pip install --upgrade pip && pip install pipenv | ||
|
||
WORKDIR /app | ||
|
||
COPY Pipfile Pipfile | ||
COPY Pipfile.lock Pipfile.lock | ||
|
||
RUN set -ex \ | ||
&& apk add --virtual .build-deps build-base gcc python-dev libffi-dev \ | ||
&& pipenv install --deploy --system \ | ||
&& apk del .build-deps | ||
|
||
COPY . /app | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT ["honcho", "start"] | ||
CMD ["web"] |
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,32 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[packages] | ||
flask = "*" | ||
flask-apispec = "*" | ||
flask-cors = "*" | ||
flask-limiter = "*" | ||
flask-talisman = "*" | ||
gevent = "*" | ||
gunicorn = "*" | ||
honcho = "*" | ||
sendgrid = "*" | ||
|
||
[dev-packages] | ||
black = "*" | ||
"flake8" = "*" | ||
invoke = "*" | ||
pytest = "*" | ||
pytest-cov = "*" | ||
pytest-flask = "*" | ||
pytest-mock = "*" | ||
python-dotenv = "*" | ||
safety = "*" | ||
|
||
[requires] | ||
python_version = "3.7" | ||
|
||
[pipenv] | ||
allow_prereleases = true |
Oops, something went wrong.