2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-16 00:12:48 +00:00
Comrad/bin/comrad-apocalype

28 lines
549 B
Plaintext
Raw Normal View History

2020-09-29 18:20:51 +00:00
#!/bin/bash
# funcs (mac doesnt have realpath)
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
2020-09-29 16:53:37 +00:00
path_com_bin="`realpath ~/comrad/code/bin`"
path_conda="`realpath ~/comrad/lib/miniconda3`"
path_venv="`realpath ~/comrad/code/venv`"
path_repo="`realpath ~/comrad/code`"
2020-09-29 16:48:42 +00:00
2020-09-29 16:53:37 +00:00
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
2020-09-29 16:48:42 +00:00
2020-09-29 16:53:37 +00:00
cd $path_repo
2020-09-18 05:51:34 +00:00
2020-09-29 16:50:49 +00:00
python -c "
from comrad import *
create_phonelines()
"
2020-09-18 05:51:34 +00:00
2020-09-29 16:53:37 +00:00
$path_com_bin/comrad-update