Skip to content

Instantly share code, notes, and snippets.

@natefinch
Created September 12, 2019 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natefinch/ce8738ef9eba0fef55f0369dbaadb761 to your computer and use it in GitHub Desktop.
Save natefinch/ce8738ef9eba0fef55f0369dbaadb761 to your computer and use it in GitHub Desktop.
[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.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.builds]]
name = "build_api"
build_target = "build"
[[ci.builds]]
name = "release"
build_target = "release"
[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