From bdabe1d78a323b31c58d22ff990683ecf3ceb38d Mon Sep 17 00:00:00 2001 From: Kevin Dees Date: Thu, 6 Jun 2019 15:32:00 -0400 Subject: [PATCH] fix app config path --- typerocket-framework.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/typerocket-framework.php b/typerocket-framework.php index 3b48c10b..7f3661d5 100644 --- a/typerocket-framework.php +++ b/typerocket-framework.php @@ -118,6 +118,11 @@ function tr_plugin_gutenberg($value = true) { function tr_plugin_config_paths() { $temp_uri = get_template_directory_uri(); $temp_dir = get_template_directory(); + $app_path = TR_PATH . '/app'; + + if(file_exists( $temp_dir . '/app/Http/Kernel.php')) { + $app_path = $temp_dir . '/app'; + } return [ 'urls' => [ @@ -131,7 +136,7 @@ function tr_plugin_config_paths() { 'visuals' => $temp_dir . '/resources/visuals', 'components' => $temp_dir . '/resources/components', 'plugins' => $temp_dir . '/plugins', - 'app' => TR_PATH . '/app', + 'app' => $app_path, 'themes' => $temp_dir . '/resources/themes', 'migrate' => [ 'driver' => 'file',