Looks like I've found the solution,
migrate is using Alembic, and there's a file called 
<project>\migration\env.py that defines where to look for the database 
connection string, I've edited the file a bit to search for env var called 
$DATABASE_URL, for now my code looks like this:

def run_migrations_online():
    database_url = os.environ.get('DATABASE_URL')
    if database_url:
        configData = {"sqlalchemy.url":database_url}
    else:
        configData = config.get_section(config.config_ini_section)
   engine = engine_from_config(
                configData,
                prefix='sqlalchemy.',
                poolclass=pool.NullPool)
    ....

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to