Giter Club home page Giter Club logo

Comments (7)

amityo avatar amityo commented on August 15, 2024

I experience the same issue. can anyone comment if we run it correctly?

"test": "env-cmd ./tests/.env echo $TESTMODE",

from env-cmd.

tomyates avatar tomyates commented on August 15, 2024

I'm getting the same result as @amityo

from env-cmd.

andreialecu avatar andreialecu commented on August 15, 2024

Was anyone able to figure out what is wrong? Seeing the same problem.

from env-cmd.

amity0 avatar amity0 commented on August 15, 2024

@tomyates @andreialecu I think that I was able to use it properly with something like this:
package.json:

"test:server": "cd dist/tests && env-cmd ../../envs/test.server.env mocha \"{.,!(node_modules)/**}/*.test.js\" 

from env-cmd.

toddbluhm avatar toddbluhm commented on August 15, 2024

I have added some examples to demonstrate how to use the various options here: https://github.com/toddbluhm/env-cmd-examples

After looking at those, let me know if you are still having issues. If you are on Linux its possible there are still issues. A few others have reported issues on Linux, but it been very sporadic. I have used it on Linux successfully myself. The issues I have seen on Linux tend to be permission issues reading the .env file.

from env-cmd.

andreialecu avatar andreialecu commented on August 15, 2024

It was a problem with the way our project was set up. A babel plugin was embedding process.env.VAR as constants and process.env itself wouldn't contain anything. Was a problem on our end, we verified that this package works properly after all. Sorry, and thank you!

from env-cmd.

toddbluhm avatar toddbluhm commented on August 15, 2024

Closing due to no additional feedback from other members.

from env-cmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.