Skip to content

Commit 159b414

Browse files
authored
Merge pull request #379 from jolicode/fix_symfony-webapp-task
fix: `symfony --web-app` task
2 parents 6ec3296 + 9c37485 commit 159b414

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.castor/init.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ function symfony(bool $webApp = false): void
4646
docker_compose_run('composer create-project symfony/skeleton sf');
4747

4848
fs()->mirror($base . '/sf/', $base);
49+
fs()->remove([$base . '/sf', $base . '/var']);
4950

5051
if ($webApp) {
5152
docker_compose_run('composer require webapp');
5253
}
5354

5455
docker_compose_run("sed -i 's#^DATABASE_URL.*#DATABASE_URL=postgresql://app:app@postgres:5432/app\\?serverVersion=16\\&charset=utf8#' .env");
5556
file_put_contents($gitIgnore, $gitIgnoreContent, \FILE_APPEND);
56-
57-
fs()->remove($base . '/sf');
5857
}

0 commit comments

Comments
 (0)