mirror of
https://github.com/YunoHost-Apps/bonfire_ynh.git
synced 2024-09-03 18:16:01 +02:00
Execute just as Bonfire (again)
This commit is contained in:
parent
43c05810df
commit
68cd947b06
1 changed files with 5 additions and 6 deletions
|
@ -77,15 +77,14 @@ source $install_dir/.env
|
|||
|
||||
ynh_script_progression --message="Configuring Bonfire release..." --weight=1
|
||||
cd $install_dir
|
||||
HOME=$install_dir
|
||||
ynh_exec_warn mix local.hex --force just config # install Hex in non-interractive way
|
||||
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "mix local.hex --force just config" # install Hex in non-interractive way
|
||||
ynh_exec_warn cat .env
|
||||
|
||||
#=================================================
|
||||
# Building the release
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building Bonfire release..." --weight=1
|
||||
ynh_exec_warn just rel-build
|
||||
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just rel-build"
|
||||
|
||||
ynh_exec_warn ls _build
|
||||
|
||||
|
@ -96,14 +95,14 @@ release_folder="_build/prod/rel/bonfire"
|
|||
|
||||
ynh_script_progression --message="Running database migrations..." --weight=1
|
||||
# Database created before, let's run the migrations
|
||||
ynh_exec_warn just cmd $release_folder/bin/bonfire eval 'EctoSparkles.Migrator.migrate()'
|
||||
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc ""just cmd $release_folder/bin/bonfire eval 'EctoSparkles.Migrator.migrate()'"
|
||||
|
||||
ynh_script_progression --message="Starting Bonfire..." --weight=1
|
||||
ynh_exec_warn just cmd $release_folder/bin/bonfire start
|
||||
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire start"
|
||||
|
||||
# start bonfire as a daemon
|
||||
ynh_script_progression --message="Starting Bonfire daemon..." --weight=1
|
||||
ynh_exec_warn just cmd $release_folder/bin/bonfire start daemon
|
||||
ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire start daemon"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
Loading…
Reference in a new issue