Skip to content

Commit

Permalink
ignore development files on production env
Browse files Browse the repository at this point in the history
Signed-off-by: MarioRadu <[email protected]>
  • Loading branch information
MarioRadu committed Dec 12, 2024
1 parent 71ebe0e commit a7fb0cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions bin/composer-post-install-script.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,4 @@ function getEnvironment(): string

echo "Using environment setting: " . getEnvironment() . PHP_EOL;

var_dump(file_exists(\Laminas\DevelopmentMode\Status::DEVEL_CONFIG));
var_dump(file_exists(\Laminas\DevelopmentMode\Status::DEVEL_CONFIG . '.dist'));

array_walk($files, 'copyFile');
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
},
"scripts": {
"post-create-project-cmd": [
"@development-enable"
"@development-enable",
"echo Running post-create-project-cmd commands"
],
"post-update-cmd": [
"php bin/composer-post-install-script.php"
Expand Down

0 comments on commit a7fb0cd

Please sign in to comment.