mirror of
https://github.com/YunoHost-Apps/tandoor_ynh.git
synced 2024-09-03 20:35:56 +02:00
26 lines
657 B
Bash
26 lines
657 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES AND CUSTOM HELPERS
|
|
#=================================================
|
|
|
|
nodejs_version=16
|
|
|
|
timezone="$(cat /etc/timezone)"
|
|
|
|
_tandoor_venv_install() {
|
|
ynh_exec_as_app python3 -m venv --upgrade "$install_dir/venv"
|
|
venvpy="$install_dir/venv/bin/python3"
|
|
|
|
pushd "$install_dir"
|
|
ynh_exec_as_app "$venvpy" -m pip install -r requirements.txt
|
|
popd
|
|
}
|
|
|
|
_tandoor_build_frontend() {
|
|
pushd "$install_dir/vue"
|
|
|
|
ynh_hide_warnings ynh_exec_as_app node_load_PATH" yarn install
|
|
ynh_hide_warnings ynh_exec_as_app node_load_PATH" yarn build
|
|
popd
|
|
}
|