app.run should come before app.config