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 56f9b1ac2b
review_2
3 years ago
.gitlab/merge_request_templates add flake 8 integration and remove front 3 years ago
fixtures add_new_models+remove_location_id 3 years ago
postamates review_2 3 years ago
service review 3 years ago
templates/admin add_new_models+remove_location_id 3 years ago
.dockerignore add precommit hook 3 years ago
.env.like add_filters 3 years ago
.flake8 per_file_ignore 3 years ago
.gitignore placement_points 3 years ago
.gitlab-ci.yml flake8 max len remove from gitlab-ci 3 years ago
.pre-commit-config.yaml change ci 3 years ago
Dockerfile init 3 years ago
README.md load_new_model_and_ao 3 years ago
docker-compose.test.yml fix absolute pathes 3 years ago
docker-compose.yml review 3 years ago
manage.py init 3 years ago
requirements.txt add_celery 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