mirror of
https://github.com/YunoHost-Apps/bonfire_ynh.git
synced 2024-09-03 18:16:01 +02:00
better logging
This commit is contained in:
parent
a2cbb82820
commit
4d54d0b917
1 changed files with 4 additions and 1 deletions
|
@ -70,6 +70,8 @@ source "$install_dir/.env"
|
|||
ynh_script_progression --message="Configuring Bonfire release..." --weight=1
|
||||
cd $install_dir
|
||||
ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc just config
|
||||
ynh_exec_warn grep -m 1 'version:' mix.exs
|
||||
ynh_exec_warn cat .env
|
||||
|
||||
#=================================================
|
||||
# Building the release
|
||||
|
@ -80,12 +82,13 @@ ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc just rel-build
|
|||
#=================================================
|
||||
# Run the release
|
||||
#=================================================
|
||||
|
||||
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_less 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
|
||||
# start bonfire as a daemon
|
||||
ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire start daemon"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue