__sssstatic/sssstatic.sh

30 lines
542 B
Bash
Raw Normal View History

2023-07-19 12:09:39 +02:00
#!/bin/bash
if ! [[ "$1" =~ ^(install|clean|run) ]]; then
echo "usage: $0 [action]"
echo "where action can be: [install, clean, run]"
exit 1
fi
case $1 in
install)
echo "intalling virtual environment and dependecies"
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
;;
clean)
echo "cleaning up"
rm -rf venv
;;
run)
echo "running"
2023-08-03 11:14:49 +02:00
source venv/bin/activate
2023-09-12 08:38:24 +02:00
export MAGICK_HOME=/opt/homebrew/Cellar/imagemagick/7.1.1-15_1
2023-07-19 12:09:39 +02:00
# exec python $2 "${@:3}"
esac