Created
September 12, 2019 17:30
-
-
Save nictuku/10e85d74efc116d6d15b8383965af4f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
dependencies: | |
build: | |
- python:3.6.3 | |
- heroku:latest | |
- homebrew:latest | |
runtime: | |
- python:3.6.3 | |
- heroku:latest | |
- homebrew:latest | |
build_targets: | |
- name: build | |
commands: | |
- brew install postgresql | |
- pip install -r requirements.txt | |
- name: release | |
commands: | |
- echo "RELEASE THE KRAKEN" | |
exec: | |
dependencies: | |
containers: | |
db: | |
image: postgres:9.3 | |
mounts: | |
- pg_data:/var/lib/postgresql/data | |
ports: | |
- 50042:5432 | |
environment: | |
- POSTGRES_PASSWORD=yourbase | |
- POSTGRES_USER=yourbase | |
- POSTGRES_DB=yourbase | |
environment: | |
default: | |
- DATABASE_URL=postgres://yourbase:yourbase@localhost:50042/yourbase | |
- FLASK_DEBUG=1 | |
- PYTHONUNBUFFERED=1 | |
- AWS_PROFILE=yourbase_api | |
- YB_DISPATCHER_URL=http://localhost:8080 | |
- YB_DISPATCHER_WS=ws://localhost:8080 | |
- YB_ADMIN_PASSWORD=admin | |
- YB_APP_URL=http://localhost:3000 | |
- YB_GITHUB_APP_ID=27765 | |
- YB_GITHUB_PRIVATE_KEY_FILE=github.key | |
ridai: | |
- YB_GITHUB_APP_ID=33008 | |
commands: | |
- pip install -r requirements.txt | |
- flask db upgrade | |
- gunicorn -w 4 --reload --access-logfile - --error-logfile error.log --log-level debug -b 127.0.0.1:5000 wsgi | |
ci: | |
builds: | |
- name: build_api | |
build_target: build | |
- name: release | |
build_target: release | |
conditions: | |
branch: | |
tag: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment