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 /stackbin.bin | |
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 'stackbin.bin')
-rwxr-xr-x | stackbin.bin | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/stackbin.bin b/stackbin.bin new file mode 100755 index 0000000..d3b2da3 --- /dev/null +++ b/stackbin.bin @@ -0,0 +1,9 @@ +#!/bin/sh +# Reference: fuss.bin from fuss project +# Startdate: 2022-02-13 19:25 +# Goal: see if uwsgi reacts to the @timer directives in the pastebin.py file, because flask run doesn't. +thisscript="$( readlink -f "${0}" )" +COMMAND="" +grep -qiE 'ID=.*(rhel|centos|fedora)' /etc/os-release && COMMAND="${COMMAND} uwsgi" || \ + COMMAND="${COMMAND} uwsgi_python39" +${COMMAND} --ini "$( dirname "${thisscript}" )/$( basename "${thisscript}" | sed -r -e 's/\.bin$//;' ).wsgi.ini" |