Fix the wrong port in the env file
- имя
config-typo- образ
python:3.12-slim- таймаут
- 30с
проверка…
Задание
Fix the wrong port in the env file
The application refuses to start because its configuration points at a port
that another service already occupies. Inspect /app/config.env, find the
wrong value, and correct it.
Current state
$ cat /app/config.env
SERVER_HOST=0.0.0.0
SERVER_PORT=8080
LOG_LEVEL=info
Required state
SERVER_PORT must be 8081. All other entries must stay intact.
Why
Practices editing plain configuration files, the most common on-call fix.
Whitespace and extra keys are fine — only the value of SERVER_PORT matters.
Подсказки
Hints: fix the wrong port
cat /app/config.envshows the current values.- Use
sed -i 's/SERVER_PORT=8080/SERVER_PORT=8081/' /app/config.env
or any editor you like (vi,nano). - The check parses
KEY=VALUElines; comments and blanks are ignored. - Verify:
grep SERVER_PORT /app/config.env
Терминал
Закрывается при остановке сессии.
Последние попытки
- Загрузка…
Разовый запуск (smoke-тест)
Атомарный цикл up → check → down. Полезно для CI; без предварительной подготовки состояния проверка завершится с ошибкой.