2022-08-06 19:00:44 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
2022-08-06 23:20:30 +02:00
|
|
|
nodejs_version=16
|
2024-01-27 15:12:48 +01:00
|
|
|
|
2024-01-28 13:02:57 +01:00
|
|
|
timezone="$(cat /etc/timezone)"
|
|
|
|
|
2022-08-06 19:00:44 +02:00
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2024-01-27 16:44:58 +01:00
|
|
|
_tandoor_venv_install() {
|
|
|
|
ynh_exec_as "$app" python3 -m venv --upgrade "$install_dir/venv"
|
|
|
|
venvpy="$install_dir/venv/bin/python3"
|
2024-01-27 15:12:48 +01:00
|
|
|
|
2024-07-22 12:57:33 +02:00
|
|
|
pushd "$install_dir"
|
2024-01-27 16:44:58 +01:00
|
|
|
ynh_exec_as "$app" "$venvpy" -m pip install -r requirements.txt
|
|
|
|
popd
|
|
|
|
}
|
2024-01-27 15:12:48 +01:00
|
|
|
|
2024-01-27 16:44:58 +01:00
|
|
|
_tandoor_build_frontend() {
|
2024-07-22 12:57:33 +02:00
|
|
|
pushd "$install_dir/vue"
|
2024-01-27 16:44:58 +01:00
|
|
|
ynh_use_nodejs
|
|
|
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn install
|
|
|
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn build
|
|
|
|
popd
|
2022-08-08 06:44:05 +02:00
|
|
|
}
|
|
|
|
|
2022-08-06 19:00:44 +02:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|