diff --git a/src/.gitignore.example b/src/.gitignore.example index f773ad8..d04fdfb 100644 --- a/src/.gitignore.example +++ b/src/.gitignore.example @@ -5,10 +5,6 @@ # COMPOSER /vendor -# CRAFT STORAGE -/storage/* -!/storage/.gitkeep - # ASSETS /web/assets/* /web/cpresources/* diff --git a/src/services/Git.php b/src/services/Git.php index 1b5cafe..c758c32 100644 --- a/src/services/Git.php +++ b/src/services/Git.php @@ -224,6 +224,7 @@ public function assureDotGitignore() if (strpos($gitignored, "web/assets") === false) { $gitignored .= PHP_EOL . '# ASSETS (added by fortrabbit/craft-copy)'; $gitignored .= PHP_EOL . '/web/assets/*' . PHP_EOL; + $gitignored .= PHP_EOL . '/web/cpresources/*' . PHP_EOL; return (file_put_contents($gitignoreFile, $gitignored)) ? true : false; }