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.
 
 
 
AlexP077 63f4ed9990
add_ao_rayons_route
3 years ago
.gitlab/merge_request_templates change template 3 years ago
fixtures load_new_model_and_ao 3 years ago
postamates add_filters 3 years ago
service add_ao_rayons_route 3 years ago
templates/admin filters+status_update 3 years ago
.env.like add_filters 3 years ago
.gitignore placement_points 3 years ago
.gitlab-ci.yml sst v0 3 years ago
Dockerfile init 3 years ago
README.md load_new_model_and_ao 3 years ago
ao_and_rayons.json release 0 3 years ago
docker-compose.yml fix email_url 3 years ago
manage.py init 3 years ago
requirements.txt Update file requirements.txt 3 years ago

README.md

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

  • Установите docker compose

  • Положите файлы из репозитория в папку:

    • через GIT:
    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/

  • После запуска проекта создайте администратора доступа: sudo docker exec -it postamates_django python manage.py createsuperuser

  • Система администрирования проекта по адресу (используйте логин и пароль администратора доступа): https://REACT_APP_DOMAIN/admin/

  • Для загрузки Округов и районов запустить консоль

    python manage.py shell
    

    Далее в консоли выполнить

    from service.utils import load_ao_and_rayons
    load_ao_and_rayons() 
    

Команды для обновления проекта:

  • Обновите проект и перезапустите его:
    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