4 ms·
This is built on top of Heroku runtime, more info on Procfile here: https://devcenter.heroku.com/articles/procfile https://devcenter.heroku.com/articles/procfil
by vdfs 6y ago
This is built on top of Heroku runtime, more info on Procfile here: https://devcenter.heroku.com/articles/procfile https://devcenter.heroku.com/articles/procfile
Also, note that you shouldn't use SQLite, at least with heroku, because apps should be stateless https://12factor.net/processes https://12factor.net/processes
- lolinder 6y agoPlease avoid prescribing best practices without understanding the architecture OP is working with. First, you don't actually know that using SQLite would make the OP's app stateful—if datasette is set up in immutable mode, then the .db files are no more indicative of a stateful process than a static CSV or a JSON or YAML config. Second, not every app needs to be a 12 factor app, and you're not in a position to understand the trade-offs OP is dealing with. "Best practices" rarely are best in every circumstance, and often conflict.
- simonw 6y agoI'm deliberately using SQLite here because my use-case is read-only. https://fivethirtyeight.datasettes.com/ https://fivethirtyeight.datasettes.com/ is a demo that I've been running on Heroku for over a year now - the trick is that if your data never changes you can package up the SQLite .db file as part of the deployment.