run.py 216 B

12345678910
  1. from stor import create_app, cli
  2. from stor.auth.models import User
  3. from stor.repository.models import Resource
  4. app = create_app()
  5. cli.register(app)
  6. with app.app_context():
  7. User.reindex()
  8. Resource.reindex()