mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-16 00:12:48 +00:00
21 lines
475 B
Bash
Executable File
21 lines
475 B
Bash
Executable File
#!/bin/bash
|
|
|
|
##
|
|
# Run the mobile app
|
|
##
|
|
|
|
|
|
# funcs (mac doesnt have realpath)
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
}
|
|
|
|
path_conda="`realpath ~/komrade/lib/miniconda3`"
|
|
path_venv="`realpath ~/komrade/code/venv`"
|
|
path_repo="`realpath ~/komrade/code`"
|
|
|
|
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 $path_repo/komrade/app/main.py |