Store generated configs in $HOME

And move app to ~/app.
This commit is contained in:
Timotej Lazar 2023-04-07 13:42:01 +02:00
parent 0afcd33a99
commit 931cd3f8c1
2 changed files with 12 additions and 8 deletions

4
pusher
View file

@ -1,6 +1,8 @@
#!/bin/sh
(echo ; inotifywait -m --include '[0-9]*\.tar\.gz' -e create config) |
cd ~/app
(echo ; inotifywait -m --include '[0-9]*\.tar\.gz' -e create ~/config) |
while read ; do
FLASK_APP=web python3 -m flask push
done