Skip to content

Commit ab3e09f

Browse files
GeekTrainerCopilot
andcommitted
Fix content alignment with simplified app
- Fix repo path in devcontainer postStartCommand (dog-shelter → pets-workshop) - Remove unused port 5000 from forwardPorts - Fix line number references in 1-hour and full-day exercises Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 74bc88a commit ab3e09f

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

content/1-hour/1-add-endpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Let's build our new route in our Flask backend with the help of code completion.
3434
3535
1. Return to your IDE with the project open.
3636
2. Open **server/app.py**.
37-
3. Locate the comment which reads `## HERE`, which should be at line 68.
37+
3. Locate the comment which reads `## HERE`, which should be at line 69.
3838
4. Delete the comment to ensure there isn't any confusion for Copilot, and leave your cursor there.
3939
5. Begin adding the code to create the route to return all breeds from an endpoint of **api/breeds** by typing the following:
4040

content/full-day/3-codespaces.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,14 @@ Before rebuilding the container, let's add **GitHub.copilot** to the list of ext
8585
```json
8686
"forwardPorts": [
8787
4321,
88-
5100,
89-
5000
88+
5100
9089
],
9190
```
9291

9392
6. Just below the list of ports, add the command to run the startup script to the container definition:
9493

9594
```json
96-
"postStartCommand": "chmod +x /workspaces/dog-shelter/scripts/start-app.sh && /workspaces/dog-shelter/scripts/start-app.sh",
95+
"postStartCommand": "chmod +x /workspaces/pets-workshop/scripts/start-app.sh && /workspaces/pets-workshop/scripts/start-app.sh",
9796
```
9897

9998
You've now defined a custom container!

content/full-day/6-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Let's build our new route in our Flask backend with the help of code completion.
3737

3838
1. Return to your codespace, or reopen it by navigating to your repository and selecting **Code** > **Codespaces** and the name of your codespace.
3939
2. Open **server/app.py**.
40-
3. Locate the section of code at the very bottom which launches the server, and put your cursor just above it. This should be line 70, and the code will be:
40+
3. Locate the section of code at the very bottom which launches the server, and put your cursor just above it. This should be line 71, and the code will be:
4141

4242
```python
4343
if __name__ == '__main__':

0 commit comments

Comments
 (0)