This commit is contained in:
Dooho Yi 2021-01-22 16:14:22 +09:00
parent 3f8bfc54fe
commit 51c940fd40

View file

@ -3,8 +3,8 @@
#set minimal required path #set minimal required path
export PATH=$PATH:$HOME/.local/bin export PATH=$PATH:$HOME/.local/bin
#load pyenv of 'my_webapp' user #load pyenv of 'syncthing' user
export PYENV_ROOT="/var/www/my_webapp/.pyenv" export PYENV_ROOT="/var/www/syncthing/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH" export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)" eval "$(pyenv init -)"
@ -15,10 +15,10 @@ eval "$(pyenv virtualenv-init -)"
pyenv shell exp-dist pyenv shell exp-dist
#change directory #change directory
cd /var/www/my_webapp/expressive-distribusi cd /var/www/syncthing/exp-dist-losttrain
#start to watch.. #start to watch..
./run.sh ./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 ./run.sh
done done