Skip to content

Commit 4ed5460

Browse files
comments
1 parent 4bbdba7 commit 4ed5460

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ CMD ["poetry", "run", "pytest", "--headless"]
2525
FROM base AS prod
2626

2727

28-
#=== Select Appropriate Run Command [nano dockerfile] ===
28+
#=== Select ONE Appropriate Run Command [edit with: nano dockerfile] ===
2929

30-
# For Test Server with Debug Capabilities
30+
# For Test Server, with Debug Capabilities in Browser
3131
CMD ["poetry", "run", "python", "app.py"]
3232

33-
# For Test Server with Gunicorn
33+
# For Test Server, with Gunicorn
3434
# CMD ["poetry", "run", "gunicorn", "--workers", "1", "--bind", "0.0.0.0:8080", "app:server"]
3535

36-
# For Production Server (needs enough RAM and CPU cores!)
36+
# For PRODUCTION Server, (needs enough RAM and CPU cores!)
3737
# CMD ["poetry", "run", "gunicorn", "--workers", "32", "--bind", "0.0.0.0:8080", "app:server"]

server_commands.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ cd ./web-app
2626
git pull
2727

2828
# Optional: Edit Dockerfile
29-
# nano dockerfile
29+
nano dockerfile
30+
# uncomment 32 cores only on server with enough resources
3031
# Strg-S, Strg-X
3132

3233
# Main Command: Run with docker
33-
('docker-compose' for old docker version from debian repos, 'docker compose' for newer versions like ubuntu-latest github runner)
34-
(This command starts the app. If a previous version is already running, it also shuts it down.)
34+
# ('docker-compose' for old docker version from debian repos, 'docker compose' for newer versions like ubuntu-latest github runner)
35+
# (This command starts the app. If a previous version is already running, it also shuts it down.)
3536
docker-compose --profile default up -d --build
3637

3738
# Run tests

0 commit comments

Comments
 (0)