File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 build :
55 name : Build
66 runs-on : ubuntu-latest
7- env :
8- OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
97 steps :
108 - name : executing remote ssh commands using password using ssh-actions
119 uses : appleboy/ssh-action@v0.1.10
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # 에러 발생 시 스크립트 중단
4+ set -e
5+
36git pull;
47
58for pid in $( ps -ef | grep streamlit | grep -v grep | awk ' {print $2}' ) ; do
@@ -8,7 +11,7 @@ for pid in $(ps -ef | grep streamlit | grep -v grep | awk '{print $2}'); do
811done
912
1013SRC=/work/TASTY/ai
11- DEST=/ $HOME /deploy
14+ DEST=$HOME /deploy
1215
1316rm -rf $DEST
1417mkdir -p $DEST
@@ -22,4 +25,4 @@ source .venv/bin/activate
2225
2326pip install -r requirements.txt
2427
25- nohup setsid streamlit run app.py --server.port=8501 > streamlit.log 2>&1 < /dev/null &
28+ nohup ./.venv/bin/ streamlit run app.py --server.port=8501 > streamlit.log 2>&1 & disown
You can’t perform that action at this time.
0 commit comments