al_whatmough
07/09/2020, 10:51 AMdouwe_maan
07/09/2020, 3:04 PMPORT env var!
Heroku sets that env var automatically and expects apps to use it, so I don't think you'd need to set it in the Dockerfile or .env on top of that?al_whatmough
07/10/2020, 11:22 AMal_whatmough
07/10/2020, 11:22 AMal_whatmough
07/10/2020, 11:24 AMdouwe_maan
07/10/2020, 1:52 PMmeltano invoke airflow webserver. I assume you are actually running meltano invoke airflow scheduler as well?al_whatmough
07/10/2020, 2:25 PM#!/bin/bash
set -e
export MELTANO_DATABASE_URI=$DATABASE_URL
meltano ui start
meltano invoke airflow scheduleral_whatmough
07/10/2020, 2:26 PMdouwe_maan
07/10/2020, 2:26 PMmeltano ui start is not backgrounded, so it will never exit, and the script will never get to meltano invoke airflow scheduler !douwe_maan
07/10/2020, 2:26 PMal_whatmough
07/10/2020, 2:26 PMal_whatmough
07/10/2020, 2:27 PMal_whatmough
07/10/2020, 2:40 PMmeltano ui start? I tried putting a & afterwards but it still runs in the foreground when testing locally. Maybe I should just run Airflow first in the background by passing -D and then start Meltano?douwe_maan
07/10/2020, 2:41 PM& , it will probably still send its stdout/stderr to your current shell, but it will actually get to the next commanddouwe_maan
07/10/2020, 2:41 PM-D first would probably work too