Skip to content

Commit 9d9e129

Browse files
committed
Updated dev environment
1 parent 2d03043 commit 9d9e129

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

.devcontainer/devcontainer.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"customizations": {
99
"vscode": {
1010
"settings": {
11+
"cSpell.words": [
12+
"wsgi",
13+
"pytest",
14+
"Redis",
15+
"testdb"
16+
],
1117
"[python]": {
1218
"editor.defaultFormatter": "ms-python.black-formatter",
1319
"editor.formatOnSave": true
@@ -33,21 +39,25 @@
3339
"ms-python.pylint",
3440
"ms-python.flake8",
3541
"ms-python.black-formatter",
42+
"njpwerner.autodocstring",
43+
"wholroyd.jinja",
3644
"ms-vscode.makefile-tools",
3745
"yzhang.markdown-all-in-one",
46+
"davidanson.vscode-markdownlint",
3847
"bierner.github-markdown-preview",
3948
"hnw.vscode-auto-open-markdown-preview",
40-
"DavidAnson.vscode-markdownlint",
49+
"bierner.markdown-preview-github-styles",
50+
"tamasfe.even-better-toml",
4151
"donjayamanne.githistory",
4252
"GitHub.vscode-pull-request-github",
4353
"hbenl.vscode-test-explorer",
4454
"LittleFoxTeam.vscode-python-test-adapter",
45-
"njpwerner.autodocstring",
4655
"redhat.vscode-yaml",
47-
"rangav.vscode-thunder-client",
48-
"streetsidesoftware.code-spell-checker",
49-
"wholroyd.jinja",
50-
"ms-azuretools.vscode-docker"
56+
"unjinjang.rest-api-client",
57+
"ms-azuretools.vscode-docker",
58+
"github.vscode-github-actions",
59+
"streetsidesoftware.code-spell-checker",
60+
"bbenoist.vagrant"
5161
]
5262
}
5363
}

.devcontainer/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
environment:
1616
FLASK_APP: wsgi:app
1717
FLASK_DEBUG: "True"
18-
GUNICORN_BIND: "0.0.0.0:8000"
19-
PORT: 8000
18+
GUNICORN_BIND: "0.0.0.0:8080"
19+
PORT: 8080
2020
DATABASE_URI: "redis://redis:6379"
2121
networks:
2222
- dev

dot-env-example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FLASK_APP=service:app
1+
FLASK_APP=wsgi:app
22
PORT=8080

service/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def create_app():
4848
log_handlers.init_logging(app, "gunicorn.error")
4949

5050
app.logger.info(70 * "*")
51-
app.logger.info(f" H I T C O U N T E R S E R V I C E v{__version__}".center(70, "*"))
51+
app.logger.info(
52+
f" H I T C O U N T E R S E R V I C E v{__version__} ".center(70, "*")
53+
)
5254
app.logger.info(70 * "*")
5355

5456
app.logger.info("Service initialized!")

0 commit comments

Comments
 (0)