About 1,260,000 results
Open links in new tab
  1. What is an .env (or dotenv) file exactly? - Stack Overflow

    Jul 6, 2021 · What is an .env (or dotenv) file exactly? Asked 4 years, 5 months ago Modified 2 years, 7 months ago Viewed 36k times

  2. How to set environment variables from .env file - Stack Overflow

    Apr 7, 2017 · USERNAME=ABC PASSWORD=PASS Unlike the normal ones have export prefix so I cannot source the file directly. What's the easiest way to create a shell script that loads …

  3. Adding an .env file to a React project - Stack Overflow

    Sep 1, 2021 · Finally, add .env to your .gitignore file so that Git ignores it and it never ends up on GitHub. If you are using Create React App (create-react-app) then you only need step 3 and 4, …

  4. List all environment variables from the command line

    Apr 27, 2020 · Is it possible to list all environment variables from a Windows' command prompt? Something equivalent to PowerShell's gci env: (or ls env: or dir env:).

  5. How do I use an env file with GitHub Actions? - Stack Overflow

    I have multiple environments (dev, qa, prod) and I'm using .env files to store secrets etc... Now I'm switching to GitHub Actions, and I want to use my .env files and declare them into the env sect...

  6. What is the difference between env, setenv, export and when to use?

    The env command is very rarely useful except in shebang lines. When invoked without arguments, it displays the environment, but export does it better (sorted, and often quoted to …

  7. How to save .env file in windows? - Stack Overflow

    Steps to create .env file in Windows machine: Open a Notepad and write the credentials inside the file Click on Save option and change the file type to 'All files' Keep the file name as .env Hit …

  8. dockerfile - How do I set environment variables during the "docker ...

    I'm trying to set environment variables in docker container during the build but without success. Setting them when using run command works but I need to set them during the build. …

  9. How can I use environment variables in docker-compose?

    For variables to be set in the container, you will need to specify a .env file in your docker-compose.yml using env_file: .env.vars or whatever your file name is that contains the …

  10. Node.js not recognizing .env file - Stack Overflow

    A late answer but hopefully will help people in future. Dotenv and nodes --env-file work differently. Dotenv will not fail to run if the env file can't be found. --env-file does. This makes deployments …