Git Product home page Git Product logo

Comments (3)

andrewmclagan avatar andrewmclagan commented on June 3, 2024 2

To read in a specific file via an argument you would use the --path flag e.g. to read in .env.staging

react-env --path .env.staging 

You are using the --env flag which looks for an existing environment variable by that name and then finds the env file from that name. e.g. APP_ENV=production along with --env APP_ENV would load .env.production

from react-env.

andrewmclagan avatar andrewmclagan commented on June 3, 2024 1

fair call...! thank you. Would you mind writing up a small PR on the docs?

from react-env.

bb-in-hoodie avatar bb-in-hoodie commented on June 3, 2024

@andrewmclagan ,
it would be better if you make it clear that we should set APP_ENV as an environment variable in terminal.

image

because for now with the example you've written, we might be confused as "you have to replace 'APP_ENV' with the name of environment you want". (As a result, we might end up writing react-env --env staging instead of APP_ENV=staging react-env --env APP_ENV.)

from react-env.

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.