mirror of
https://github.com/YunoHost-Apps/galene_ynh.git
synced 2024-09-03 18:36:31 +02:00
Update ynh_install_go
This commit is contained in:
parent
65dfab2827
commit
949eb7da43
1 changed files with 3 additions and 3 deletions
|
@ -30,14 +30,14 @@ export GOENV_ROOT="$goenv_install_dir"
|
||||||
# However, $PATH is duplicated into $go_path to outlast any manipulation of $PATH
|
# However, $PATH is duplicated into $go_path to outlast any manipulation of $PATH
|
||||||
# You can use the variable `$ynh_go_load_path` to quickly load your Go version
|
# You can use the variable `$ynh_go_load_path` to quickly load your Go version
|
||||||
# in $PATH for an usage into a separate script.
|
# in $PATH for an usage into a separate script.
|
||||||
# Exemple: $ynh_go_load_path $final_path/script_that_use_gem.sh`
|
# Exemple: $ynh_go_load_path $install_dir/script_that_use_gem.sh`
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Finally, to start a Go service with the correct version, 2 solutions
|
# Finally, to start a Go service with the correct version, 2 solutions
|
||||||
# Either the app is dependent of Go or gem, but does not called it directly.
|
# Either the app is dependent of Go or gem, but does not called it directly.
|
||||||
# In such situation, you need to load PATH
|
# In such situation, you need to load PATH
|
||||||
# `Environment="__YNH_GO_LOAD_PATH__"`
|
# `Environment="__YNH_GO_LOAD_PATH__"`
|
||||||
# `ExecStart=__FINALPATH__/my_app`
|
# `ExecStart=__INSTALL_DIR__/my_app`
|
||||||
# You will replace __YNH_GO_LOAD_PATH__ with $ynh_go_load_path
|
# You will replace __YNH_GO_LOAD_PATH__ with $ynh_go_load_path
|
||||||
#
|
#
|
||||||
# Or Go start the app directly, then you don't need to load the PATH variable
|
# Or Go start the app directly, then you don't need to load the PATH variable
|
||||||
|
@ -72,7 +72,7 @@ ynh_use_go () {
|
||||||
ynh_go_load_path="PATH=$PATH"
|
ynh_go_load_path="PATH=$PATH"
|
||||||
|
|
||||||
# Sets the local application-specific Go version
|
# Sets the local application-specific Go version
|
||||||
pushd $final_path
|
pushd $install_dir
|
||||||
$goenv_install_dir/bin/goenv local $go_version
|
$goenv_install_dir/bin/goenv local $go_version
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue