You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
2.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Пилот подсистема рекомендательных сервисов
### Инструкция по развёртыванию проекта:
- Установите [docker](https://docs.docker.com/engine/install/ubuntu/)
- Установите [docker compose](https://docs.docker.com/compose/install/)
- Положите файлы из репозитория в папку:
- через GIT:
```bash
git clone git@gitlab.com:endwork_today/dit.git
cd dit
git submodule update --init
```
- создайте файл ```postamates/.env``` на основе файла ```postamates/.env.like```
- Запустите проект:
```sudo docker-compose up --build```
- Теперь проект доступен по адресу:
[https://REACT_APP_DOMAIN/](https://REACT_APP_DOMAIN/)
- После запуска проекта создайте администратора доступа:
```sudo docker exec -it postamates_django python manage.py createsuperuser```
- Система администрирования проекта по адресу (используйте логин и пароль администратора доступа):
[https://REACT_APP_DOMAIN/admin/](https://REACT_APP_DOMAIN/admin/)
- Для загрузки Округов и районов запустить консоль
```bash
python manage.py shell
```
Далее в консоли выполнить
```bash
from service.utils import load_ao_and_rayons
load_ao_and_rayons()
### Команды для обновления проекта:
- Обновите проект и перезапустите его:
```bash
git pull
git submodule foreach git merge origin main
git submodule foreach git pull origin main
sudo docker stop business_spatiality_martin
sudo docker rm business_spatiality_martin
sudo docker-compose up --build
```