mirror of
https://github.com/YunoHost-Apps/crabfit_ynh.git
synced 2024-09-03 18:16:21 +02:00
Move the ynh_script_progression outside of _common.sh
This commit is contained in:
parent
6e25ff7dc6
commit
304f264051
3 changed files with 4 additions and 4 deletions
|
@ -10,8 +10,6 @@ export nodejs_version="18"
|
||||||
#=================================================
|
#=================================================
|
||||||
function build_backend
|
function build_backend
|
||||||
{
|
{
|
||||||
ynh_script_progression --message="Building crabfit backend..." --weight=1
|
|
||||||
|
|
||||||
# The cargo version packaged with debian (currently 11) is too old and results in errors..
|
# The cargo version packaged with debian (currently 11) is too old and results in errors..
|
||||||
# Thus the latest version is manually installed alongside the application for the moment
|
# Thus the latest version is manually installed alongside the application for the moment
|
||||||
pushd $install_dir/api
|
pushd $install_dir/api
|
||||||
|
@ -36,8 +34,6 @@ function build_backend
|
||||||
|
|
||||||
function build_frontend
|
function build_frontend
|
||||||
{
|
{
|
||||||
ynh_script_progression --message="Building crabfit frontend..." --weight=1
|
|
||||||
|
|
||||||
pushd $install_dir/frontend
|
pushd $install_dir/frontend
|
||||||
ynh_exec_warn_less env "$ynh_node_load_PATH" $nodejs_path/corepack enable
|
ynh_exec_warn_less env "$ynh_node_load_PATH" $nodejs_path/corepack enable
|
||||||
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" $nodejs_path/yarn install --production --frozen-lockfile
|
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" $nodejs_path/yarn install --production --frozen-lockfile
|
||||||
|
|
|
@ -60,11 +60,13 @@ chown $app:$app "$install_dir/api/.env"
|
||||||
#=================================================
|
#=================================================
|
||||||
# BUILD BACKEND
|
# BUILD BACKEND
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Building crabfit backend..." --weight=10
|
||||||
build_backend
|
build_backend
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BUILD FRONTEND
|
# BUILD FRONTEND
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Building crabfit frontend..." --weight=2
|
||||||
build_frontend
|
build_frontend
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -132,11 +132,13 @@ chown $app:$app "$install_dir/api/.env"
|
||||||
#=================================================
|
#=================================================
|
||||||
# BUILD BACKEND
|
# BUILD BACKEND
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Building crabfit backend..." --weight=10
|
||||||
build_backend
|
build_backend
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BUILD FRONTEND
|
# BUILD FRONTEND
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Building crabfit frontend..." --weight=2
|
||||||
build_frontend
|
build_frontend
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue