title: How do I use flask-migrate on pythonanywhere?
body: <p>Does anyone have an example of successfully using flask-migrate on pythonanywhere? Does anyone have a simple example of what an app.py using migration should look like? Something along the lines of:</p>
  
  <pre><code>from flask import Flask, request, render_template
  from flask.ext.sqlalchemy import SQLAlchemy
  from flask.ext.migrate import Migrate, MigrateCommand
  from flask.ext.script import Manager
  app = Flask(__name__ )
  app.secret_key = 'This is really unique and secret'
  app.config['SQLALCHEMY_DATABASE_URI'] = '&lt;whatever&gt;'
  db = SQLAlchemy(app)
  db.create_all()
  manager = Manager( app )
  migrate = Migrate( app, db )
  manager.add_command('db', MigrateCommand )
  </code></pre>
  
  <p>I find that when I try to run </p>
  
  <pre><code>python app.py db init
  </code></pre>
  
  <p>it fails to generate the migration repository. Could this be a file permission issue on pythonanywhere?</p>