Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

geonames    города мираgeo19.2
КодОписаниеВерсия
suggestions_addressАдреса России
suggestions_geo    координаты19.2+
suggestions_house    дополнительные дома19.10+
suggestions_iso3166    ISO-коды19.10+
suggestions_КоординатыgeonamesГорода мира (кроме Белоруссии)
suggestions_osmАдресе Белоруссии20.7+
suggestions_fiasФИАС20.2+
suggestions_bankБанки
suggestions_emailЭл. почта18.11+
suggestions_fioФИО18.11+
suggestions_ipIP-адреса
suggestions_partyКомпании
suggestions_partyextКомпании
(ранжирование + реестры)
19.7 — опциональный
19.8+ — обязательный

...

Без форматирования
# Команды выполняются на сервере приложения

# - скачать справочники Подсказок
env/bin/fab download suggestions_address
env/bin/fab download suggestions_geo
env/bin/fab download suggestions_geonames
env/bin/fab download suggestions_geoosm
env/bin/fab download suggestions_bank
env/bin/fab download suggestions_ip
env/bin/fab download suggestions_party
env/bin/fab download suggestions_partyext
env/bin/fab download suggestions_email
env/bin/fab download suggestions_fio

# - скачать справочники Фактора
env/bin/fab download factor_geocode
env/bin/fab download factor_fias
env/bin/fab download factor_flatarea
env/bin/fab download factor_flatprice
env/bin/fab download factor_invpassport
env/bin/fab download factor_transphone

# - скачать справочники Единого клиента
env/bin/fab download cdi_egr

...

Без форматирования
# Команды выполняются на сервере приложения

# - обновить справочники Подсказок
env/bin/fab update suggestions_address
env/bin/fab update suggestions_geonamesgeo
env/bin/fab update suggestions_addressgeonames
env/bin/fab update suggestions_geoosm
env/bin/fab update suggestions_bank
env/bin/fab update suggestions_ip
env/bin/fab update suggestions_partyext
env/bin/fab update suggestions_party
env/bin/fab update suggestions_email
env/bin/fab update suggestions_fio

# - обновить справочники Фактора
env/bin/fab update factor_geocode
env/bin/fab update factor_fias
env/bin/fab update factor_flatarea
env/bin/fab update factor_flatprice
env/bin/fab update factor_invpassport
env/bin/fab update factor_transphone

# - обновить справочники Единого клиента
env/bin/fab update cdi_egr

...

/download-dictionaries.sh
Без форматирования
00 21 * * 6  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/download-dictionaries.sh
00 01 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab update suggestions_bank
05 01 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab update suggestions_ip
10 01 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab update suggestions_geonames update suggestions_address
00 03address
30 02 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab update suggestions_partyext update suggestions_party
00 04geo
35 02 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab update factorsuggestions_geocodegeonames
3040 0402 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab update factor_fias
Блок кода
languagebash
title
suggestions_osm
00 03 * * 0  cd /opt/updater
 && . /opt/updater/updater.env/bin/fab download suggestions_bank
 && /opt/updater/env/bin/fab downloadupdate suggestions_partyext update suggestions_ip
party
00 04 * * 0  cd /opt/updater/env/bin/fab download suggestions_address
 && . /opt/updater/updater.env/bin/fab download suggestions_geonames
 && /opt/updater/env/bin/fab downloadupdate suggestionsfactor_party
geocode
30 04 * * 0  cd /opt/updater/env/bin/fab download suggestions_partyext
 && . /opt/updater/updater.env && /opt/updater/env/bin/fab downloadupdate factor_fias
Блок кода
languagebash
title/opt/updater/download-dictionaries.sh
suggestions_email
/opt/updater/env/bin/fab download suggestions_fiobank
/opt/updater/env/bin/fab download factorsuggestions_geocodeip
/opt/updater/env/bin/fab download factor_fias

Пример для запуска с внешней машины, если полный путь к утилите /opt/updater, а 10.0.1.34 — адрес сервера приложения:

suggestions_address
/opt/updater/env/bin/fab download suggestions_geo
/opt/updater/env/bin/fab download suggestions_geonames
/opt/updater/env/bin/fab download suggestions_osm
/opt/updater/env/bin/fab download suggestions_party
/opt/updater/env/bin/fab download suggestions_partyext
/opt/updater/env/bin/fab download suggestions_email
/opt/updater/env/bin/fab download suggestions_fio
/opt/updater/env/bin/fab download factor_geocode
/opt/updater/env/bin/fab download factor_fias


Пример для запуска с внешней машины, если полный путь к утилите /opt/updater, а 10.0.1.34 — адрес сервера приложения:

Без форматирования
00 21 * * 6  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/download-dictionaries.sh

00 23 * * 6  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/copy-dictionaries.sh
00 01 * * 0
Без форматирования
00 21 * * 6  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/download-dictionaries.sh

00 23env/bin/fab -H 10.0.1.34 update suggestions_bank
05 01 * * 60  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/copy-dictionaries.sh
00env/bin/fab -H 10.0.1.34 update suggestions_ip
10 01 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab -H 10.0.1.34 update suggestions_bankaddress
0530 0102 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab -H 10.0.1.34 update suggestions_ipgeo
1035 0102 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab -H 10.0.1.34 update suggestions_geonames update suggestions_address
55
40 02 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab -H 10.0.1.34 update suggestions_geoosm
00 03 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab -H 10.0.1.34 update suggestions_partyext update suggestions_party
00 04 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab -H 10.0.1.34 update factor_geocode
30 04 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab -H 10.0.1.34 update factor_fias
Блок кода
languagebash
title/opt/updater/download-dictionaries.sh
/opt/updater/env/bin/fab download-to suggestions_bank /tmp/dictionaries/suggestions_bank
/opt/updater/env/bin/fab download-to suggestions_ip /tmp/dictionaries/suggestions_ipip
/opt/updater/env/bin/fab download-to suggestions_address /tmp/dictionaries/suggestions_address
/opt/updater/env/bin/fab download-to suggestions_geonames /tmp/dictionaries/suggestions_geo
/opt/updater/env/bin/fab download-to suggestions_addressgeonames /tmp/dictionaries/suggestions_addressgeonames
/opt/updater/env/bin/fab download-to suggestions_geonames /tmp/dictionaries/suggestions_geonamesosm
/opt/updater/env/bin/fab download-to suggestions_party /tmp/dictionaries/suggestions_party
/opt/updater/env/bin/fab download-to suggestions_partyext /tmp/dictionaries/suggestions_partyext
/opt/updater/env/bin/fab download-to suggestions_email /tmp/dictionaries/suggestions_email
/opt/updater/env/bin/fab download-to suggestions_fio /tmp/dictionaries/suggestions_fio
/opt/updater/env/bin/fab download-to factor_geocode /tmp/dictionaries/factor_geocode
/opt/updater/env/bin/fab download-to factor_fias /tmp/dictionaries/factor_fias
Блок кода
languagebash
title/opt/updater/copy-dictionaries.sh
SERVER="10.0.1.34"
/opt/updater/env/bin/fab -H $SERVER scp suggestions_bank /tmp/dictionaries/suggestions_bank
/opt/updater/env/bin/fab -H $SERVER scp suggestions_ip /tmp/dictionaries/suggestions_ip
/opt/updater/env/bin/fab -H $SERVER scp suggestions_address /tmp/dictionaries/suggestions_address
/opt/updater/env/bin/fab -H $SERVER scp suggestions_geo /tmp/dictionaries/suggestions_geo
/opt/updater/env/bin/fab -H $SERVER scp suggestions_geonames /tmp/dictionaries/suggestions_geonames
/opt/updater/env/bin/fab -H $SERVER scp suggestions_osm /tmp/dictionaries/suggestions_osm
/opt/updater/env/bin/fab -H $SERVER scp suggestions_party /tmp/dictionaries/suggestions_party
/opt/updater/env/bin/fab -H $SERVER scp suggestions_partyext /tmp/dictionaries/suggestions_partyext
/opt/updater/env/bin/fab -H $SERVER scp suggestions_email /tmp/dictionaries/suggestions_email
/opt/updater/env/bin/fab -H $SERVER scp suggestions_fio /tmp/dictionaries/suggestions_fio
/opt/updater/env/bin/fab -H $SERVER scp factor_geocode /tmp/dictionaries/factor_geocode
/opt/updater/env/bin/fab -H $SERVER scp factor_fias /tmp/dictionaries/factor_fias

...