Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ ynh_script_progression "Deploying..."

pushd "$install_dir"
corepack enable
ynh_hide_warnings corepack prepare yarn@latest --activate
ynh_hide_warnings corepack prepare yarn@latest --activate

ynh_hide_warnings ynh_exec_as_app yarn install
ynh_hide_warnings ynh_exec_as_app yarn install --production
ynh_hide_warnings ynh_exec_as_app yarn run production
ynh_hide_warnings ynh_exec_as_app php$php_version artisan setup:production --force --email=$email --password=$password
ynh_hide_warnings ynh_exec_as_app php$php_version artisan passport:client --password -n > key.txt
ynh_hide_warnings ynh_exec_as_app php$phpversion artisan setup:production --force --email=$email --password=$password
ynh_hide_warnings ynh_exec_as_app php$phpversion artisan passport:client --password -n > key.txt
mobile_id=$( cd $install_dir && tail -2 key.txt | head -1 | cut -c 12- )
mobile_key=$( cd $install_dir && tail -1 key.txt | cut -c 16- )
ynh_replace --match="mobile_id" --replace="$mobile_id" --file="$install_dir/.env"
Expand All @@ -75,7 +75,7 @@ pushd "$install_dir"
ynh_app_setting_set --key=mobile_key --value=$mobile_key
ynh_safe_rm "$install_dir/key.txt"
ynh_hide_warnings ynh_exec_as_app php$php_version artisan config:cache
ynh_hide_warnings ynh_exec_as_app php$php_version artisan optimize:clear
ynh_hide_warnings ynh_exec_as_app php$php_version artisan optimize:clear
popd

ynh_store_file_checksum "$install_dir/.env"
Expand Down
8 changes: 4 additions & 4 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ ynh_script_progression "Deploying..."

pushd "$install_dir"
corepack enable
ynh_hide_warnings corepack prepare yarn@latest --activate

ynh_hide_warnings ynh_exec_as_app yarn install
ynh_hide_warnings corepack prepare yarn@latest --activate
ynh_hide_warnings ynh_exec_as_app yarn install --production
ynh_hide_warnings ynh_exec_as_app yarn run production
ynh_hide_warnings ynh_exec_as_app php$php_version artisan monica:update --force
ynh_hide_warnings ynh_exec_as_app php$phpversion artisan monica:update --force
popd

if [ -f $install_dir/storage/oauth-private.key ]; then
Expand Down