signebedi / gita-api

a RESTful Bhagavad Gita API
GNU Affero General Public License v3.0
0 stars 0 forks source link

Set env-specific instance folders #110

Open signebedi opened 7 months ago

signebedi commented 7 months ago

Right now, dev and prod are both run out of instance/. But, we can change that if we want to bifurcate them, just pass an override directory path as app = Flask(__name__, instance_path='/path/to/instance/folder'), see https://flask.palletsprojects.com/en/2.3.x/config/#instance-folders. We'll need to change a few conventions and assumptions, and we'll need to update the gitignore, if we choose to do this.