watcher
This commit is contained in:
parent
3f8bfc54fe
commit
51c940fd40
1 changed files with 4 additions and 4 deletions
|
|
@ -3,8 +3,8 @@
|
|||
#set minimal required path
|
||||
export PATH=$PATH:$HOME/.local/bin
|
||||
|
||||
#load pyenv of 'my_webapp' user
|
||||
export PYENV_ROOT="/var/www/my_webapp/.pyenv"
|
||||
#load pyenv of 'syncthing' user
|
||||
export PYENV_ROOT="/var/www/syncthing/.pyenv"
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
if command -v pyenv 1>/dev/null 2>&1; then
|
||||
eval "$(pyenv init -)"
|
||||
|
|
@ -15,10 +15,10 @@ eval "$(pyenv virtualenv-init -)"
|
|||
pyenv shell exp-dist
|
||||
|
||||
#change directory
|
||||
cd /var/www/my_webapp/expressive-distribusi
|
||||
cd /var/www/syncthing/exp-dist-losttrain
|
||||
|
||||
#start to watch..
|
||||
./run.sh
|
||||
while inotifywait -e modify,move,create,delete,close_write -r ./data/ ; do
|
||||
while inotifywait -e modify,move,delete,close_write -r ./data/ ; do
|
||||
./run.sh
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue