user3330833
user3330833

Reputation: 2329

Flask-migrate on openshift

I am using flask. I installed Flask-migrate and have been using it to migrate my postgresql db. It works fine on my local box. However, when I run it on openshift I get an error

"File "/opt/rh/python27/root/usr/lib64/python2.7/ConfigParser.py", line 396, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'alembic'
" 

Anyone know what this is or how to fix it?

Upvotes: 3

Views: 1359

Answers (2)

Ace
Ace

Reputation: 41

It probably means that Flask Migrate is unable to find alembic configuration. Flask Migrate depends on Alembic to generate db revisions.

By default, Flask Migrate searches for configuration(and db version scripts) in migrations directory. If your configuration is present in different folder, you can specify it using -d <dir>

Upvotes: 4

TheSteve0
TheSteve0

Reputation: 3526

I think this is a bug with LD_Library_path that should be fixed in this sprint. Should be rolling out to production in a week or two

Upvotes: 0

Related Questions