62 lines
2 KiB
Bash
62 lines
2 KiB
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
## consts
|
||
|
|
||
|
source_directory="/home/projekte/fremde/mealie"
|
||
|
target_directory="/tmp/mealie"
|
||
|
python_modules=""
|
||
|
python_modules="${python_modules} uvicorn"
|
||
|
python_modules="${python_modules} fastapi"
|
||
|
python_modules="${python_modules} itsdangerous"
|
||
|
python_modules="${python_modules} python-dotenv"
|
||
|
python_modules="${python_modules} python-dateutil"
|
||
|
python_modules="${python_modules} pydantic_settings"
|
||
|
python_modules="${python_modules} sqlalchemy"
|
||
|
python_modules="${python_modules} pyjwt"
|
||
|
python_modules="${python_modules} text_unidecode"
|
||
|
python_modules="${python_modules} python-slugify"
|
||
|
python_modules="${python_modules} pyhumps"
|
||
|
python_modules="${python_modules} isodate"
|
||
|
python_modules="${python_modules} apprise"
|
||
|
python_modules="${python_modules} recipe_scrapers"
|
||
|
python_modules="${python_modules} bcrypt"
|
||
|
python_modules="${python_modules} python-ldap"
|
||
|
python_modules="${python_modules} authlib"
|
||
|
python_modules="${python_modules} alembic"
|
||
|
python_modules="${python_modules} python-multipart"
|
||
|
python_modules="${python_modules} openai"
|
||
|
python_modules="${python_modules} pillow"
|
||
|
python_modules="${python_modules} pillow-heif"
|
||
|
python_modules="${python_modules} jinja2"
|
||
|
python_modules="${python_modules} html2text"
|
||
|
python_modules="${python_modules} orjson"
|
||
|
python_modules="${python_modules} rapidfuzz"
|
||
|
|
||
|
|
||
|
### exec
|
||
|
|
||
|
### create venv
|
||
|
python3 -m venv ${target_directory}
|
||
|
|
||
|
### copy files
|
||
|
cp -r ${source_directory}/alembic ${target_directory}/alembic
|
||
|
cp -r ${source_directory}/alembic.ini ${target_directory}/alembic.ini
|
||
|
cp -r ${source_directory}/mealie ${target_directory}/mealie
|
||
|
|
||
|
### enter venv
|
||
|
cd ${target_directory}
|
||
|
source bin/activate
|
||
|
|
||
|
### install dependencies
|
||
|
pip3 install ${python_modules}
|
||
|
# poetry install -E pgsql --only main
|
||
|
|
||
|
### init
|
||
|
$PYTHONPATH:${target_directory} python3 ${target_directory}/mealie/scripts/install_model.py
|
||
|
|
||
|
### frontend
|
||
|
cp -r ${source_directory}/frontend ${target_directory}/frontend
|
||
|
npm install
|
||
|
npm install webpack@4.47.0
|
||
|
mkdir ${target_directory}/frontend/dist
|