Skip to content

[feat-1043] add Render.com deployment instructions#1049

Open
Levasey wants to merge 5 commits intohexlet-volunteers:mainfrom
Levasey:docs/iss1043-render-deploy
Open

[feat-1043] add Render.com deployment instructions#1049
Levasey wants to merge 5 commits intohexlet-volunteers:mainfrom
Levasey:docs/iss1043-render-deploy

Conversation

@Levasey
Copy link
Copy Markdown

@Levasey Levasey commented Mar 17, 2026

Add Dockerfile and RENDER_DEPLOY.md

Comment thread docs/RENDER_DEPLOY.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы добавил ссылку в оглавление в README, который в корне лежит.

Comment thread docs/RENDER_DEPLOY.md Outdated
- [ ] Добавлены переменные: `SPRING_PROFILES_ACTIVE`, `JDBC_DATABASE_URL`, `USERNAME`, `PASSWORD`, `DATABASE`, `HOST`, `DB_PORT`.
- [ ] Выполнен первый деплой, логи без ошибок, приложение открывается по URL.

После этого деплой на Render.com считается настроенным; дальнейшие обновления — через push в выбранную ветку.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

эта строчка выглядит лишней, предлагаю убрать

Comment thread docs/RENDER_DEPLOY.md Outdated

## Краткий чеклист

- [ ] Создана PostgreSQL на Render, скопированы URL и учётные данные.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

квадратные скобки в начале строк лучше убрать

Comment thread docs/RENDER_DEPLOY.md Outdated

## Предварительные требования

- Аккаунт на [render.com](https://render.com)
Copy link
Copy Markdown

@ann-p-1320 ann-p-1320 Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Откуда брать логопасс для входа? в смысле нужно написать, что если нет аккаунта - надо зарегаться

Comment thread docs/RENDER_DEPLOY.md Outdated
## Предварительные требования

- Аккаунт на [render.com](https://render.com)
- Репозиторий проекта на GitHub или GitLab (привязанный к Render)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

здесь можно конктерно о нашем проекте писать, ссылку на репозиторий, например

Comment thread docs/RENDER_DEPLOY.md
> **Важно:** Создайте базу данных до настройки переменных окружения — данные подключения понадобятся для Web Service.

1. Войдите в [Dashboard Render](https://dashboard.render.com).
2. Нажмите **New** → **PostgreSQL**.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

При каждом деплое создаем новую БД?

Comment thread docs/RENDER_DEPLOY.md Outdated

- Аккаунт на [render.com](https://render.com)
- Репозиторий проекта на GitHub или GitLab (привязанный к Render)
- Локально: закоммиченный и запушенный код с `Dockerfile` в корне репозитория
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в чем смысл этого требования?

Comment thread docs/RENDER_DEPLOY.md Outdated

1. В Dashboard нажмите **New** → **Web Service**.
2. Подключите репозиторий:
- Если ещё не подключён — **Connect account** (GitHub/GitLab) и выберите репозиторий `hexlet-cv`.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

наш проект на гитхаб, нет смысла упоминать гитлаб

Comment thread docs/RENDER_DEPLOY.md Outdated
- **Branch** — ветка для деплоя (обычно `main` или `master`).
- **Runtime** — **Docker**.
- **Dockerfile Path** — оставьте `./Dockerfile` (если Dockerfile в корне).
- **Instance Type** — Free или платный при необходимости.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

здесь обычно выбираем free, стоит это обозначить

Comment thread docs/RENDER_DEPLOY.md Outdated

В разделе **Environment** добавьте переменные для Web Service:

| Key | Value | Описание |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

отформатируй табличку

Comment thread docs/RENDER_DEPLOY.md Outdated
|-----|--------|----------|
| `SPRING_PROFILES_ACTIVE` | `prod` | Включение продакшен-конфигурации |
| `JDBC_DATABASE_URL` | `jdbc:postgresql://HOST:DB_PORT/DATABASE?password=PASSWORD&user=USERNAME` | Полный JDBC URL |
| `USERNAME` | *пользователь БД* | Из карточки PostgreSQL |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай на шаге 2 добавим какие-то данные в эти поля, чтобы здесь их указывать в качестве примера

Comment thread docs/RENDER_DEPLOY.md Outdated
| `HOST` | *хост БД* | Internal hostname (например, `dpg-xxxxx-a`) |
| `DB_PORT` | `5432` | Порт PostgreSQL |

**Как получить значения:**
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно вписать эти подробности в столбец описания предыдущей таблицы, но на первый взгляд кажется, что в них нет необходимости и можно просто удалить

Comment thread docs/RENDER_DEPLOY.md

## Шаг 4. Деплой

1. Проверьте, что все переменные окружения сохранены.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

как проверить? какой командой? стоит написать

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Разве есть какая-то команда имеется ввиду визуально проверить правильность

Comment thread docs/RENDER_DEPLOY.md Outdated

1. Проверьте, что все переменные окружения сохранены.
2. Нажмите **Create Web Service**.
3. Render соберёт образ по Dockerfile (multi-stage: frontend на Node 20, backend на Gradle/JDK 17, runtime на Eclipse Temurin 24) и запустит контейнер. Первый деплой может занять несколько минут.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

информация в скобках не нужна

Comment thread docs/RENDER_DEPLOY.md Outdated

---

## Шаг 5. Автодеплой из Git
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это не пятый шаг, это просто каждый может настроить по желанию

Comment thread docs/RENDER_DEPLOY.md

---

## Опционально: render.yaml (Blueprint)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это нужно переписать с примерами значений переменных для нашего проекта

Comment thread docs/RENDER_DEPLOY.md Outdated
Comment thread docs/RENDER_DEPLOY.md
Comment thread docs/RENDER_DEPLOY.md Outdated
Comment thread docs/RENDER_DEPLOY.md Outdated
@ann-p-1320
Copy link
Copy Markdown

аппрув

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants