Magento2 Magento 2.3 Ubuntu的Venia店面设置

Magento2 Magento 2.3 Ubuntu的Venia店面设置,magento2,progressive-web-apps,venia,Magento2,Progressive Web Apps,Venia,我现在正在尝试设置Magento Venia店面,并将其连接到我的Magento 2.3。 为此,我已参考了以下网站: 到目前为止,我已经安装并运行了Magento 2.3后端。我从他们的官方git存储库中获取了一个克隆:() 我已经完成了纱线安装并安装了所需的软件包 在此之后,文档建议我使用buildpack生成SSL证书,命令如下: Warn buildpack创建定制原产包装/venia概念 执行此操作后,我现在得到以下错误: yarn run v1.21.1 $ buildpack cr

我现在正在尝试设置Magento Venia店面,并将其连接到我的Magento 2.3。 为此,我已参考了以下网站:

  • 到目前为止,我已经安装并运行了Magento 2.3后端。我从他们的官方git存储库中获取了一个克隆:()
  • 我已经完成了
    纱线安装
    并安装了所需的软件包
  • 在此之后,文档建议我使用buildpack生成SSL证书,命令如下:
    Warn buildpack创建定制原产包装/venia概念
  • 执行此操作后,我现在得到以下错误:

    yarn run v1.21.1
    $ buildpack create-custom-origin packages/venia-concept
      ⓧ  Missing required environment variables:
         MAGENTO_BACKEND_URL: Connect to an instance of Magento 2.3 by specifying its public domain name. (eg. "https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/")
         CHECKOUT_BRAINTREE_TOKEN: Specify a Braintree API token to direct the Venia storefront to communicate with your Braintree instance. You can find this value in Braintree's
         Control Panel under Settings > API Keys > Tokenization Keys. (eg. "sandbox_8yrzsvtm_s2bg8fs563crhqzk")
      ⓧ  Error: Missing required environment variables:
         MAGENTO_BACKEND_URL: Connect to an instance of Magento 2.3 by specifying its public domain name. (eg. "https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/")
         CHECKOUT_BRAINTREE_TOKEN: Specify a Braintree API token to direct the Venia storefront to communicate with your Braintree instance. You can find this value in Braintree's
         Control Panel under Settings > API Keys > Tokenization Keys. (eg. "sandbox_8yrzsvtm_s2bg8fs563crhqzk")
      ⓧ  Error: Error: Missing required environment variables:
         MAGENTO_BACKEND_URL: Connect to an instance of Magento 2.3 by specifying its public domain name. (eg. "https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/")
         CHECKOUT_BRAINTREE_TOKEN: Specify a Braintree API token to direct the Venia storefront to communicate with your Braintree instance. You can find this value in Braintree's
         Control Panel under Settings > API Keys > Tokenization Keys. (eg. "sandbox_8yrzsvtm_s2bg8fs563crhqzk")
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    
    关于第一点,我找不到关于如何在设置Venia店面时配置Braintree的适当文档。关于第二点,我现在在本地运行我的Magento 2.3,我的管理面板只在Http上运行


    感谢您的帮助,提前谢谢

    如果未使用以下命令生成.env文件,请首先创建该文件

    MAGENTO_后端_URL=”https://magento.local“Thread buildpack创建环境文件包/venia概念

    现在,您可以在packages/venia concept/.env中找到.env文件,您可以在其中将MAGENTO_BACKEND_URL设置为您的MAGENTO URL

    如果您浏览.env文件,您将看到有一个字段CHECKOUT\u BRAINTREE\u TOKEN=TOKEN,它被注释掉了。取消注释并将braintree标记放入其中

    对于braintree令牌,请在
    https://www.braintreepayments.com/sandbox?_ga=1.114967554.428334232.1579331999
    然后复制创建帐户后获得的令牌(私钥)

    希望能有帮助