From f3fb00a50d7e246af96a990b20a01c9ed08990b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 12 Jul 2024 23:17:36 +0200 Subject: [PATCH] Change url fix --- scripts/change_url | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 5fe5e9c..5ba61c1 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -23,6 +23,11 @@ ynh_replace_string --target_file="$install_dir/.env" \ --match_string="APP_URL=https://$old_domain" \ --replace_string="APP_URL=https://$new_domain" +pushd "$install_dir" + ynh_exec_as "$app" "php$phpversion" artisan config:clear -n + ynh_exec_as "$app" "php$phpversion" artisan config:cache -n +popd + #================================================= # END OF SCRIPT #=================================================