2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-03 23:15:33 +00:00
This commit is contained in:
marxzuckerburg 2020-10-01 17:37:44 +01:00
parent 8d58e46e49
commit ceee8e7845

View File

@ -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