diff options
author | B. Stack <bgstack15@gmail.com> | 2022-02-13 21:47:21 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-02-13 21:54:20 -0500 |
commit | 85df4b3dc87003ae738f2676a99b88a83f3ac05a (patch) | |
tree | 15b892a06b81451d83f73cf0f8822c9bf262c4af /README-bgstack15.md | |
parent | add redirects after delete, and simplify css calls (diff) | |
download | stackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.tar.gz stackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.tar.bz2 stackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.zip |
add expiry, and wsgi usage to support that
The flask dev server seems incapable of using the @timer
decorator, so we need the whole wsgi implementation, for
which I've added a script.
Arbitrary expiration options are available in the config
file.
Diffstat (limited to 'README-bgstack15.md')
-rw-r--r-- | README-bgstack15.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/README-bgstack15.md b/README-bgstack15.md index e0cd9bc..67b143e 100644 --- a/README-bgstack15.md +++ b/README-bgstack15.md @@ -24,17 +24,19 @@ Run server in development mode. FLASK_APP=pastebin.py FLASK_DEBUG=True flask run --host='0.0.0.0' +Run the server in a full wsgi environment for the cleanup timer to operate. + + ./stackbin.bin + # Improvements I still need to work on these tasks: ## Development * Protect the /admin/ page -* Add expiry of pastes? (use existing pubdate value, or just an extra column with desired expiration timestamp) ## Release -* Read any of my flask projects (fuss is the best one) to learn how to setup prod server * Document centos7 dependencies * Deploy to prod |