question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'env_file' property not beeing recognized

See original GitHub issue

Description

When using the env_file property as described in the docs, tye fails to parse the it when running tye run and prints out the following error message:

Loading Application Details...
Error parsing tye.yaml: (12, 5): Unexpected key "env_file" in tye.yaml.

To Reproduce

  1. Save the following content as tye.yaml
name: env-test
services:
  - name: redis
    image: redis
    env_file:
      - ./config.env
  1. Save the following content as config.env
ALLOW_EMPTY_PASSWORD=yes
  1. Run tye run

Got Exceptions? Include both the message and the stack trace

Loading Application Details...
Error parsing tye.yaml: (12, 5): Unexpected key "env_file" in tye.yaml.

Further technical details

  • Version: 0.4.0-alpha.20371.1+d7623120d66b85bfeda8ab69eb5ff792df6b7243
  • Rerunning with -v debug did not gave any additional output
  • Platform: Windows

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
codeminiccommented, Nov 3, 2020

@jkotalik Worked with the CI build, thx!

0reactions
tebecocommented, Nov 3, 2020

Don’t mind me^^ I was just pointing that it’s to be expected that this version was still used due to the lifecycle of an ongoing alpha

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - NodeJS not recognizing .env file
In the file you are using environment variables, As early as possible, require the "dotenv" and in the config() method, specify the path...
Read more >
env file is not read · Issue #4223 · docker/compose
I'm trying to use ENV variables declared in a .env file in my docker-compose file (I.e. I don't want to use the .env...
Read more >
Stop Using .env Files Now!
There's plenty wrong with using .env files, especially in production. Permissions could be wrong, it could expose passwords to folks who are ...
Read more >
Configuration Reference Guide
In this reference guide we're going to describe various aspects of Quarkus configuration. A Quarkus application and Quarkus itself (core and extensions) are ......
Read more >
React not reading .env file Environment Variables [Solved]
A step-by-step guide on how to resolve the issue where React doesn't read the environment variables from your .env file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found