Skip to content

Commit e18b11f

Browse files
committed
ignore development files on production env
Signed-off-by: MarioRadu <magda_marior@yahoo.com>
1 parent e2ebd6e commit e18b11f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/composer-post-install-script.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function copyFile(array $file): void
2626

2727
function getEnvironment(): string
2828
{
29-
return file_exists('config/development.local.php') ? ENVIRONMENT_DEVELOPMENT : ENVIRONMENT_PRODUCTION;
29+
return file_exists('config/development.config.php') ? ENVIRONMENT_DEVELOPMENT : ENVIRONMENT_PRODUCTION;
3030
}
3131

3232
// when adding files to the below array the `source` and `destination` paths must be relative to the project root folder
@@ -49,4 +49,7 @@ function getEnvironment(): string
4949
],
5050
];
5151

52+
53+
var_dump(getEnvironment()); exit;
54+
5255
array_walk($files, 'copyFile');

0 commit comments

Comments
 (0)