|
|
@ -14,6 +14,10 @@ path_conda="`realpath ~/comrad/lib/miniconda3`"
|
|
|
|
path_venv="`realpath ~/comrad/code/venv`"
|
|
|
|
path_venv="`realpath ~/comrad/code/venv`"
|
|
|
|
path_repo="`realpath ~/comrad/code`"
|
|
|
|
path_repo="`realpath ~/comrad/code`"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
source $path_conda/etc/profile.d/conda.sh
|
|
|
|
|
|
|
|
export PATH="$path_conda/bin:$PATH"
|
|
|
|
|
|
|
|
conda activate $path_venv
|
|
|
|
|
|
|
|
|
|
|
|
# update?
|
|
|
|
# update?
|
|
|
|
path_repo_git="$path_repo/.git"
|
|
|
|
path_repo_git="$path_repo/.git"
|
|
|
|
if [ -d "$path_repo_git" ]
|
|
|
|
if [ -d "$path_repo_git" ]
|
|
|
@ -21,9 +25,5 @@ then
|
|
|
|
pushd $path_repo && git pull
|
|
|
|
pushd $path_repo && git pull
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
source $path_conda/etc/profile.d/conda.sh
|
|
|
|
|
|
|
|
export PATH=\"$path_conda/bin:\$PATH\"
|
|
|
|
|
|
|
|
conda activate $path_venv
|
|
|
|
|
|
|
|
python -m pip install -r $path_repo/requirements.txt
|
|
|
|
python -m pip install -r $path_repo/requirements.txt
|
|
|
|
python $path_repo/comrad/app/main.py
|
|
|
|
python $path_repo/comrad/app/main.py
|