Skip to content

Commit

Permalink
fix app config path
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindees committed Jun 6, 2019
1 parent 3a829b1 commit bdabe1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion typerocket-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand All @@ -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',
Expand Down

0 comments on commit bdabe1d

Please sign in to comment.