初始化提交
This commit is contained in:
21
云效流水线部署脚本/1.sh
Normal file
21
云效流水线部署脚本/1.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
bash -c '
|
||||
set -e
|
||||
mkdir -p /data/webapps/yunxiao_tgz/influencer-search-agent/
|
||||
mkdir -p /data/webapps/influencer-search-agent/log
|
||||
tar zxvf /data/webapps/yunxiao_tgz/influencer-search-agent/influencer-search-agent.tgz -C /data/webapps/influencer-search-agent/
|
||||
|
||||
cd /data/webapps/influencer-search-agent
|
||||
echo "当前路径: $(pwd)"
|
||||
|
||||
source /root/miniconda3/etc/profile.d/conda.sh
|
||||
conda activate py312
|
||||
|
||||
python --version
|
||||
echo "Python 路径: $(which python)"
|
||||
pip install -r requirements.txt
|
||||
|
||||
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
|
||||
nohup env PYTHONPATH=/data/webapps/influencer-search-agent APP_ENV=test \
|
||||
python -m dialogue.influencer_search \
|
||||
> /data/webapps/influencer-search-agent/log/influencer-search_${TIMESTAMP}.log 2>&1 &
|
||||
'
|
||||
Reference in New Issue
Block a user