Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
AWS EC2
uname -a
Linux ip-***-**-*-*.ap-northeast-1.compute.internal 3.10.0-1062.4.3.el7.x86_64 #1 SMP Wed Nov 13 23:58:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.7.1908 (Core)
Install: Legacy mode
Import magento data: not yet
I changed vs/config/local.json server.host value to 0.0.0.0
vs-api/config/local.json
{ "server": { "host": "localhost", "port": 8080, "searchEngine": "elasticsearch" }, "orders": { "useServerQueue": false }, "catalog": { "excludeDisabledProducts": false }, "elasticsearch": { "host": "localhost", "port": 9200, "protocol": "http", "user": "elastic", "password": "changeme", "min_score": 0.01, "indices": [ "vue_storefront_catalog", "vue_storefront_catalog_de", "vue_storefront_catalog_it" ], "indexTypes": [ "product", "category", "cms", "attribute", "taxrule", "review" ], "apiVersion": "5.6" }, "redis": { "host": "localhost", "port": 6379, "db": 0, "auth": false }, "kue": {}, "availableStores": [ "de", "it" ], "msi": { "enabled": false, "defaultStockId": 1 }, "storeViews": { "multistore": true, "mapStoreUrlsFor": [ "de", "it" ], "de": { "storeCode": "de", "disabled": false, "storeId": 3, "name": "German Store", "url": "/de", "elasticsearch": { "host": "localhost:8080/api/catalog", "index": "vue_storefront_catalog_de" }, "msi": { "stockId": 2 }, "tax": { "defaultCountry": "DE", "defaultRegion": "", "calculateServerSide": true, "sourcePriceIncludesTax": false }, "i18n": { "fullCountryName": "Germany", "fullLanguageName": "German", "defaultLanguage": "DE", "defaultCountry": "DE", "defaultLocale": "de-DE", "currencyCode": "EUR", "currencySign": "EUR", "dateFormat": "HH:mm D-M-YYYY" } }, "it": { "storeCode": "it", "disabled": false, "storeId": 4, "name": "Italian Store", "url": "/it", "elasticsearch": { "host": "localhost:8080/api/catalog", "index": "vue_storefront_catalog_it" }, "msi": { "stockId": 2 }, "tax": { "defaultCountry": "IT", "defaultRegion": "", "calculateServerSide": true, "sourcePriceIncludesTax": false }, "i18n": { "fullCountryName": "Italy", "fullLanguageName": "Italian", "defaultCountry": "IT", "defaultLanguage": "IT", "defaultLocale": "it-IT", "currencyCode": "EUR", "currencySign": "EUR", "dateFormat": "HH:mm D-M-YYYY" } } }, "authHashSecret": "__SECRET_CHANGE_ME__", "objHashSecret": "__SECRET_CHANGE_ME__", "cart": { "setConfigurableProductOptions": false }, "tax": { "defaultCountry": "PL", "defaultRegion": "", "calculateServerSide": true, "alwaysSyncPlatformPricesOver": false, "usePlatformTotals": true, "setConfigurableProductOptions": true, "sourcePriceIncludesTax": false }, "bodyLimit": "100kb", "corsHeaders": [ "Link" ], "platform": "magento2", "registeredExtensions": [ "mailchimp-subscribe", "example-magento-api", "cms-data", "mail-service", "example-processor" ], "extensions": { "mailchimp": { "listId": "e06875a7e1", "apiKey": "a9a3318ea7d30f5c5596bd4a78ae0985-us3", "apiUrl": "https://us3.api.mailchimp.com/3.0" }, "mailService": { "transport": { "host": "smtp.gmail.com", "port": 465, "secure": true, "user": "vuestorefront", "pass": "vuestorefront.io" }, "targetAddressWhitelist": [ "contributors@vuestorefront.io" ], "secretString": "__THIS_IS_SO_SECRET__" }, "example-processor": { "resultProcessors": { "product": "my-product-processor" } } }, "magento2": { "imgUrl": "http://demo-magento2.vuestorefront.io/media/catalog/product", "assetPath": "/../var/magento2-sample-data/pub/media", "api": { "url": "http://demo-magento2.vuestorefront.io/rest", "consumerKey": "byv3730rhoulpopcq64don8ukb8lf2gq", "consumerSecret": "u9q4fcobv7vfx9td80oupa6uhexc27rb", "accessToken": "040xx3qy7s0j28o3q0exrfop579cy20m", "accessTokenSecret": "7qunl3p505rubmr7u1ijt7odyialnih9" } }, "magento1": { "imgUrl": "http://magento-demo.local/media/catalog/product", "assetPath": "", "magentoUserName": "", "magentoUserPassword": "", "httpUserName": "", "httpUserPassword": "", "api": { "url": "http://magento-demo.local/vsbridge", "consumerKey": "", "consumerSecret": "", "accessToken": "", "accessTokenSecret": "" } }, "imageable": { "maxListeners": 512, "imageSizeLimit": 1024, "whitelist": { "allowedHosts": [ ".*divante.pl", ".*vuestorefront.io", ".*vitacafe.com" ] }, "cache": { "memory": 50, "files": 20, "items": 100 }, "concurrency": 0, "counters": { "queue": 2, "process": 4 }, "simd": true }, "entities": { "category": { "includeFields": [ "children_data", "id", "children_count", "sku", "name", "is_active", "parent_id", "level", "url_key" ] }, "attribute": { "includeFields": [ "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable" ] }, "productList": { "sort": "", "includeFields": [ "type_id", "sku", "product_links", "tax_class_id", "special_price", "special_to_date", "special_from_date", "name", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "url_key" ], "excludeFields": [ "configurable_children", "description", "configurable_options", "sgn" ] }, "productListWithChildren": { "includeFields": [ "type_id", "sku", "name", "tax_class_id", "special_price", "special_to_date", "special_from_date", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "configurable_children.image", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.priceInclTax", "configurable_children.specialPriceInclTax", "configurable_children.originalPrice", "configurable_children.originalPriceInclTax", "configurable_children.color", "configurable_children.size", "product_links", "url_key" ], "excludeFields": [ "description", "sgn" ] }, "product": { "excludeFields": [ "updated_at", "created_at", "attribute_set_id", "status", "visibility", "tier_prices", "options_container", "msrp_display_actual_price_type", "has_options", "stock.manage_stock", "stock.use_config_min_qty", "stock.use_config_notify_stock_qty", "stock.stock_id", "stock.use_config_backorders", "stock.use_config_enable_qty_inc", "stock.enable_qty_increments", "stock.use_config_manage_stock", "stock.use_config_min_sale_qty", "stock.notify_stock_qty", "stock.use_config_max_sale_qty", "stock.use_config_max_sale_qty", "stock.qty_increments", "small_image" ], "includeFields": null, "filterFieldMapping": { "category.name": "category.name.keyword" } } }, "usePriceTiers": false, "boost": { "name": 3, "category.name": 1, "short_description": 1, "description": 1, "sku": 1, "configurable_children.sku": 1 } }
vs/config/local.json
{ "server": { "host": "0.0.0.0", "port": 3000, "protocol": "http", "api": "api", "devServiceWorker": false, "useOutputCacheTagging": false, "useOutputCache": false, "outputCacheDefaultTtl": 86400, "availableCacheTags": ["product", "category", "home", "checkout", "page-not-found", "compare", "my-account", "P", "C", "error"], "invalidateCacheKey": "aeSu7aip", "dynamicConfigReload": false, "dynamicConfigContinueOnError": false, "dynamicConfigExclude": ["ssr", "storeViews", "entities", "localForage", "shipping", "boost", "query"], "dynamicConfigInclude": [], "elasticCacheQuota": 4096, "ssrDisabledFor": { "extensions": [".png", ".gif", ".jpg", ".jpeg", ".woff", ".eot", ".woff2", ".ttf", ".svg", ".css", ".js", ".json", ".ico", ".tiff", ".tif", ".raw"] } }, "seo": { "useUrlDispatcher": true, "disableUrlRoutesPersistentCache": true }, "console": { "showErrorOnProduction" : false, "verbosityLevel": "display-everything" }, "redis": { "host": "localhost", "port": 6379, "db": 0 }, "graphql":{ "host": "localhost", "port": 8080 }, "api": { "url": "http://localhost:8080" }, "elasticsearch": { "httpAuth": "", "host": "/api/catalog", "index": "vue_storefront_catalog", "min_score": 0.02, "csrTimeout": 5000, "ssrTimeout": 1000, "queryMethod": "GET", "disablePersistentQueriesCache": true, "searchScoring": { "attributes": { "attribute_code": { "scoreValues": { "attribute_value": { "weight": 1 } } } }, "fuzziness": 2, "cutoff_frequency": 0.01, "max_expansions": 3, "minimum_should_match": "75%", "prefix_length": 2, "boost_mode": "multiply", "score_mode": "multiply", "max_boost": 100, "function_min_score": 1 }, "searchableAttributes": { "name": { "boost": 4 }, "sku": { "boost": 2 }, "category.name": { "boost": 1 } } }, "ssr": { "templates": { "default": "dist/index.html", "minimal": "dist/index.minimal.html", "basic": "dist/index.basic.html", "amp": "dist/index.amp.html" }, "executeMixedinAsyncData": true, "initialStateFilter": ["__DEMO_MODE__", "version", "storeView"], "useInitialStateFilter": true }, "defaultStoreCode": "", "storeViews": { "multistore": false, "commonCache": true, "mapStoreUrlsFor": ["de", "it"], "de": { "storeCode": "de", "disabled": true, "storeId": 3, "name": "German Store", "url": "/de", "appendStoreCode": true, "elasticsearch": { "host": "/api/catalog", "index": "vue_storefront_catalog_de" }, "tax": { "sourcePriceIncludesTax": false, "defaultCountry": "DE", "defaultRegion": "", "calculateServerSide": true }, "i18n": { "fullCountryName": "Germany", "fullLanguageName": "German", "defaultLanguage": "DE", "defaultCountry": "DE", "defaultLocale": "de-DE", "currencyCode": "EUR", "currencySign": "EUR", "dateFormat": "HH:mm D-M-YYYY" } }, "it": { "storeCode": "it", "disabled": true, "storeId": 4, "name": "Italian Store", "url": "/it", "appendStoreCode": true, "elasticsearch": { "host": "/api/catalog", "index": "vue_storefront_catalog_it" }, "tax": { "sourcePriceIncludesTax": false, "defaultCountry": "IT", "defaultRegion": "", "calculateServerSide": true }, "i18n": { "fullCountryName": "Italy", "fullLanguageName": "Italian", "defaultCountry": "IT", "defaultLanguage": "IT", "defaultLocale": "it-IT", "currencyCode": "EUR", "currencySign": "EUR", "dateFormat": "HH:mm D-M-YYYY" } } }, "entities": { "optimize": true, "twoStageCaching": true, "optimizeShoppingCart": true, "category": { "includeFields": [ "id", "*.children_data.id", "*.id", "children_count", "sku", "name", "is_active", "parent_id", "level", "url_key", "url_path", "product_count", "path"], "excludeFields": [ "sgn" ], "categoriesRootCategorylId": 2, "categoriesDynamicPrefetchLevel": 2, "categoriesDynamicPrefetch": true }, "attribute": { "includeFields": [ "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable", "tier_prices", "frontend_input" ] }, "productList": { "sort": "updated_at:desc", "includeFields": [ "type_id", "sku", "product_links", "tax_class_id", "special_price", "special_to_date", "special_from_date", "name", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "url_path", "url_key", "status", "tier_prices", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.priceInclTax", "configurable_children.specialPriceInclTax", "configurable_children.originalPrice", "configurable_children.originalPriceInclTax" ], "excludeFields": [ "description", "configurable_options", "sgn", "*.sgn", "msrp_display_actual_price_type", "*.msrp_display_actual_price_type", "required_options" ] }, "productListWithChildren": { "includeFields": [ "type_id", "sku", "name", "tax_class_id", "special_price", "special_to_date", "special_from_date", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "configurable_children.image", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.priceInclTax", "configurable_children.specialPriceInclTax", "configurable_children.originalPrice", "configurable_children.originalPriceInclTax", "configurable_children.color", "configurable_children.size", "configurable_children.id", "configurable_children.tier_prices", "product_links", "url_path", "url_key", "status", "tier_prices"], "excludeFields": [ "description", "sgn", "*.sgn", "msrp_display_actual_price_type", "*.msrp_display_actual_price_type", "required_options"] }, "review": { "excludeFields": ["review_entity", "review_status"] }, "product": { "excludeFields": [ "*.msrp_display_actual_price_type", "required_options", "updated_at", "created_at", "attribute_set_id", "options_container", "msrp_display_actual_price_type", "has_options", "stock.manage_stock", "stock.use_config_min_qty", "stock.use_config_notify_stock_qty", "stock.stock_id", "stock.use_config_backorders", "stock.use_config_enable_qty_inc", "stock.enable_qty_increments", "stock.use_config_manage_stock", "stock.use_config_min_sale_qty", "stock.notify_stock_qty", "stock.use_config_max_sale_qty", "stock.use_config_max_sale_qty", "stock.qty_increments", "small_image", "sgn", "*.sgn"], "includeFields": null, "useDynamicAttributeLoader": true, "standardSystemFields": [ "description", "configurable_options", "tsk", "custom_attributes", "size_options", "regular_price", "final_price", "price", "color_options", "id", "links", "gift_message_available", "category_ids", "sku", "stock", "image", "thumbnail", "visibility", "type_id", "tax_class_id", "media_gallery", "url_key", "url_path", "max_price", "minimal_regular_price", "special_price", "minimal_price", "name", "configurable_children", "max_regular_price", "category", "status", "priceTax", "priceInclTax", "specialPriceTax", "specialPriceInclTax", "_score", "slug", "errors", "info", "erin_recommends", "special_from_date", "news_from_date", "custom_design_from", "originalPrice", "originalPriceInclTax", "parentSku", "options", "product_option", "qty", "is_configured" ] } }, "cart": { "thumbnails": { "width": 150, "height": 150 }, "bypassCartLoaderForAuthorizedUsers": true, "serverMergeByDefault": true, "serverSyncCanRemoveLocalItems": false, "serverSyncCanModifyLocalItems": false, "synchronize": true, "synchronize_totals": true, "setCustomProductOptions": true, "setConfigurableProductOptions": true, "askBeforeRemoveProduct": true, "displayItemDiscounts": true, "minicartCountType": "quantities", "create_endpoint": "/api/cart/create?token={{token}}", "updateitem_endpoint": "/api/cart/update?token={{token}}&cartId={{cartId}}", "deleteitem_endpoint": "/api/cart/delete?token={{token}}&cartId={{cartId}}", "pull_endpoint": "/api/cart/pull?token={{token}}&cartId={{cartId}}", "totals_endpoint": "/api/cart/totals?token={{token}}&cartId={{cartId}}", "paymentmethods_endpoint": "/api/cart/payment-methods?token={{token}}&cartId={{cartId}}", "shippingmethods_endpoint": "/api/cart/shipping-methods?token={{token}}&cartId={{cartId}}", "shippinginfo_endpoint": "/api/cart/shipping-information?token={{token}}&cartId={{cartId}}", "collecttotals_endpoint": "/api/cart/collect-totals?token={{token}}&cartId={{cartId}}", "deletecoupon_endpoint": "/api/cart/delete-coupon?token={{token}}&cartId={{cartId}}", "applycoupon_endpoint": "/api/cart/apply-coupon?token={{token}}&cartId={{cartId}}&coupon={{coupon}}" }, "products": { "disablePersistentProductsCache": true, "useMagentoUrlKeys": true, "setFirstVarianAsDefaultInURL": false, "configurableChildrenStockPrefetchStatic": false, "configurableChildrenStockPrefetchDynamic": false, "configurableChildrenStockPrefetchStaticPrefetchCount": 8, "filterUnavailableVariants": false, "listOutOfStockProducts": true, "preventConfigurableChildrenDirectAccess": true, "alwaysSyncPlatformPricesOver": false, "clearPricesBeforePlatformSync": false, "waitForPlatformSync": false, "setupVariantByAttributeCode": true, "endpoint": "/api/product", "defaultFilters": ["color", "size", "price", "erin_recommends"], "filterFieldMapping": { "category.name": "category.name.keyword" }, "colorMappings": { "Melange graphite": "#eeeeee" }, "defaultSortBy": { "attribute": "updated_at", "order": "desc" }, "sortByAttributes": { "Latest": "updated_at", "Price: Low to high":"final_price", "Price: High to low":"final_price:desc" }, "gallery": { "mergeConfigurableChildren": true, "imageAttributes": ["image","thumbnail","small_image"], "width": 600, "height": 744 }, "thumbnails": { "width": 310, "height": 300 }, "filterAggregationSize": { "default": 10, "size": 10, "color": 10 }, "priceFilters": { "ranges": [ { "from": 0, "to": 50 }, { "from": 50, "to": 100 }, { "from": 100, "to": 150 }, { "from": 150 } ] } }, "orders": { "directBackendSync": true, "endpoint": "/api/order", "payment_methods_mapping": { }, "offline_orders": { "automatic_transmission_enabled": false, "notification" : { "enabled": true, "title" : "Order waiting!", "message": "Click here to confirm the order that you made offline.", "icon": "/assets/logo.png" } } }, "localForage": { "defaultDrivers": { "user": "LOCALSTORAGE", "cmspage": "LOCALSTORAGE", "cmsblock": "LOCALSTORAGE", "carts": "LOCALSTORAGE", "orders": "LOCALSTORAGE", "wishlist": "LOCALSTORAGE", "categories": "LOCALSTORAGE", "attributes": "LOCALSTORAGE", "elasticCache": "LOCALSTORAGE", "claims": "LOCALSTORAGE", "syncTasks": "LOCALSTORAGE", "ordersHistory": "LOCALSTORAGE", "checkoutFieldValues": "LOCALSTORAGE" } }, "reviews": { "create_endpoint": "/api/review/create" }, "users": { "autoRefreshTokens": true, "endpoint": "/api/user", "history_endpoint": "/api/user/order-history?token={{token}}", "resetPassword_endpoint": "/api/user/reset-password", "changePassword_endpoint": "/api/user/change-password?token={{token}}", "login_endpoint": "/api/user/login", "create_endpoint": "/api/user/create", "me_endpoint": "/api/user/me?token={{token}}", "refresh_endpoint": "/api/user/refresh" }, "stock": { "synchronize": true, "allowOutOfStockInCart": true, "endpoint": "/api/stock" }, "images": { "useExactUrlsNoProxy": false, "baseUrl": "http://localhost:8080/img/", "productPlaceholder": "/assets/placeholder.jpg" }, "install": { "is_local_backend": true, "backend_dir": "../vue-storefront-api" }, "demomode": false, "tax": { "defaultCountry": "US", "defaultRegion": "", "sourcePriceIncludesTax": false, "calculateServerSide": true }, "shipping": { "methods": [ { "method_title": "DPD Courier", "method_code": "flatrate", "carrier_code": "flatrate", "amount": 4, "price_incl_tax": 5, "default": true, "offline": true } ] }, "syncTasks": { "disablePersistentTaskQueue": true }, "i18n": { "defaultCountry": "US", "defaultLanguage": "EN", "availableLocale": ["en-US","de-DE","fr-FR","es-ES","nl-NL", "jp-JP", "ru-RU", "it-IT", "pt-BR", "pl-PL", "cs-CZ"], "defaultLocale": "en-US", "currencyCode": "USD", "currencySign": "$", "currencySignPlacement": "preppend", "dateFormat": "l LT", "fullCountryName": "United States", "fullLanguageName": "English", "bundleAllStoreviewLanguages": true }, "expireHeaders": { "default": "30d", "application/json": "24h", "image/png": "7d" }, "newsletter": { "endpoint": "/api/ext/mailchimp-subscribe/subscribe" }, "mailer": { "endpoint": { "send": "/api/ext/mail-service/send-email", "token": "/api/ext/mail-service/get-token" }, "contactAddress": "contributors@vuestorefront.io", "sendConfirmation": true }, "theme": "@vue-storefront/theme-default", "analytics": { "id": false }, "googleTagManager": { "id": false, "debug": true }, "hotjar": { "id": false }, "cms": { "endpoint": "/api/ext/cms-data/cms{{type}}/{{cmsId}}", "endpointIdentifier": "/api/ext/cms-data/cms{{type}}Identifier/{{cmsIdentifier}}/storeId/{{storeId}}" }, "cms_block": { "max_count": 500 }, "cms_page": { "max_count": 500 }, "usePriceTiers": false, "useZeroPriceProduct": true, "query": { "inspirations": { "filter": [ { "key": "category.name", "value" : { "eq": "Performance Fabrics" } } ] }, "newProducts": { "filter": [ { "key": "category.name", "value" : { "eq": "Tees" } } ] }, "coolBags": { "filter": [ { "key": "category.name", "value" : { "eq": "Women" } } ] }, "bestSellers": { "filter": [ { "key": "category.name", "value" : { "eq": "Tees" } } ] } } }
I followed all directions in install docs. Somebody knows how to fix this problem?
Thanks for reading