Skip to content

Commit 1821a27

Browse files
committed
refactor(common): rename example project to reference procfile
1 parent 3c4e90f commit 1821a27

9 files changed

Lines changed: 6 additions & 6 deletions

File tree

example/my-app-procfile/Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: python -c "from my_app_procfile.main import start; start()"
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
applications:
3-
- name: my-app
3+
- name: my-app-procfile
44
memory: 256M
55
disk_quota: 512M
66
instances: 1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "my-app"
2+
name = "my-app-procfile"
33
version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
@@ -10,7 +10,7 @@ dependencies = [
1010
]
1111

1212
[project.scripts]
13-
start = "my_app.main:start"
13+
start = "my_app_procfile.main:start"
1414

1515
[build-system]
1616
requires = ["uv_build>=0.11.5,<0.12.0"]
File renamed without changes.

example/my-app/src/my_app/main.py renamed to example/my-app-procfile/src/my_app_procfile/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ def hello_world():
1212

1313
def start() -> None:
1414
port = int(os.environ.get("PORT", "8000"))
15-
uvicorn.run("my_app.main:app", host="0.0.0.0", port=port, reload=False)
15+
uvicorn.run("my_app_procfile.main:app", host="0.0.0.0", port=port, reload=False)
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/my-app/Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)