Skip to content

Latest commit

 

History

History
93 lines (62 loc) · 1.53 KB

File metadata and controls

93 lines (62 loc) · 1.53 KB

Run

Accounts

  1. Create account In the terminal, run the following command:
BuilderxApi.Accounts.create_account %{email: "example@gmail.com"}
  1. Get account In the terminal, run the following command:
BuilderxApi.Run.get_login_link "example@gmail.com"

Index product to elasticsearch

  1. Run services from webcms
cd webcms && make beam
  1. Run services from handle index
BuilderxApi.DynamicApp.start_rabbit
Rabbit.IndexingConsumer.start_link
Rabbit.TaskPoolConsumer.start_link
  1. Run function index product
  • Reindex all product
Elastic.re_setup_product_index
  • Delete old index
Elastic.confirm_re_setup_product_index

Run cache product (ets memory cache)

  1. Run cache product
#site_id -> uuid example: 16952bde-3812-4373-8e9d-8c7c56857312
BuilderxApi.Run.ets_cache_product_site(site_id)
  1. Run cache variations of product
#site-id -> uuid example: 16952bde-3812-4373-8e9d-8c7c56857312
BuilderxApi.Run.ets_cache_agg_variations_by_site(site_id)

Run cache category

  1. Run cache by site_id
BuilderxApi.Run.cache_category_has_many_products(site_id)
  1. Remove cache by site_id
BuilderxApi.Run.remove_cache_category_by_site(site_id)
  1. Run all cache
BuilderxApi.Run.cache_category_all
  1. Remove all cache
BuilderxApi.Run.remove_cache_category_all

Run import new address vietnamese

BuilderxApi.Geo.ImportGeo.import_new_vietnam_addresses()