Shopify / themekit

Shopify theme development command line tool.
https://shopify.dev/tools/theme-kit
MIT License
1.19k stars 374 forks source link

Not reading anything from .env file #942

Open andershagbard opened 3 years ago

andershagbard commented 3 years ago

Describe the bug When running theme watch and other commands, it doesn't read anything from the .env file.

To Reproduce Steps to reproduce the behavior:

  1. Create a .env file in the root of your project
    THEMEKIT_PASSWORD=shppa_SOMEPASSWORD
    THEMEKIT_STORE=john-doe.myshopify.com
    THEMEKIT_THEME_ID=123456789
  2. Create a config.yml file in the root of your project
  3. run command theme watch

This produces the following error:

invalid environment [development]: (missing theme_id,missing store domain,missing password)

Expected behavior Expect to start running on environment from .env file.

Environment (please complete the following information):