Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[dependencies]
build = [
"python:3.6.3",
"heroku:latest",
"homebrew:latest"
]
runtime = [
"python:3.6.3",
"heroku:latest",
"homebrew:latest"
]
[exec]
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"
]
[exec.dependencies]
[exec.dependencies.containers]
[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"
]
[exec.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"
]
[ci]
[[ci.builds]]
name = "build_api"
build_target = "build"
[[ci.builds]]
name = "release"
build_target = "release"
[ci.builds.conditions]
[ci.builds.conditions.branch]
tag = true
[[build_targets]]
name = "build"
commands = [
"brew install postgresql",
"pip install -r requirements.txt"
]
[[build_targets]]
name = "release"
commands = [
"echo \"RELEASE THE KRAKEN\""
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.