Skip to content

Commit b22bd76

Browse files
committed
Update composer command and fix docker-compose syntax
Added a "composer update" command to the post-create script to ensure dependencies are updated after project setup. Also updated the documentation to replace the deprecated `docker-compose` command with the new `docker compose` syntax.
1 parent 5b3ee15 commit b22bd76

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

builder/PostCreateScript.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public function execute($workdir, $namespace, $composerName, $phpVersion, $mysql
115115
);
116116
}
117117
}
118+
119+
shell_exec("composer update");
118120
}
119121

120122
/**

docs/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Timezone [UTC]:
7070

7171
```shell
7272
cd ~/tutorial
73-
docker-compose -f docker-compose-dev.yml up -d
73+
docker compose -f docker-compose-dev.yml up -d
7474
```
7575

7676
## Database Setup

0 commit comments

Comments
 (0)