Skip to content

Commit 644710c

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

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bin/composer-post-install-script.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,9 @@ function getEnvironment(): string
5151
],
5252
];
5353

54-
chdir(dirname(__DIR__));
55-
56-
echo __DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . PHP_EOL;
57-
echo __DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . '.dist'. PHP_EOL;
58-
59-
echo realpath(__DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . '.dist');
60-
6154
echo "Using environment setting: " . getEnvironment() . PHP_EOL;
6255

6356
var_dump(file_exists(\Laminas\DevelopmentMode\Status::DEVEL_CONFIG));
57+
var_dump(file_exists(\Laminas\DevelopmentMode\Status::DEVEL_CONFIG . '.dist'));
6458

6559
array_walk($files, 'copyFile');

0 commit comments

Comments
 (0)