Skip to content

Commit 1ff9ef8

Browse files
authored
Update template
1 parent d134778 commit 1ff9ef8

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
{
2+
"postAttachCommand": {
3+
"server": "flask --debug run",
4+
},
5+
6+
"portsAttributes": {
7+
"5000": {
8+
"label": "Application",
9+
"onAutoForward": "openPreview"
10+
}
11+
},
12+
13+
"customizations": {
14+
"codespaces": {
15+
"openFiles": ["app.py"]
16+
}
17+
},
218
"onCreateCommand": "pip install -r requirements.txt",
3-
"postCreateCommand": ""
19+
"postCreateCommand": "",
20+
"hostRequirements": {"cpus": 4}
421
}

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# codespaces-try-flask
1+
# GitHub Codespaces ♥️ Flask
2+
3+
Welcome to your shiny new Codespace running Flask! We've got everything fired up and running for you to explore Flask.
4+
5+
You've got a blank canvas to work on from a git perspective as well. There's a single initial commit with the what you're seeing right now - where you go from here is up to you!
6+
7+
Everything you do here is contained within this one codespace. There is no repository on GitHub yet. If and when you’re ready you can click "Publish to GitHub" and we’ll create your repository and push up your project. If you were just exploring then and have no further need for this code then you can simply delete your codespace and it's gone forever.
8+
9+
To run this application:
210

311
```
412
flask --debug run

0 commit comments

Comments
 (0)