Questions tagged [environment-variables]

Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.

Environment variables are a set of dynamic-named values that can affect the way running processes will behave on a computer. They can be said in some sense to create the operating environment in which a process runs. For example, an environment variable with a standard name can store the location that a particular computer system uses to store temporary files—this may vary from one computer system to another. A process which invokes the environment variable by (standard) name can be sure that it is storing temporary information in a directory that exists and is expected to have sufficient space.

https://en.wikipedia.org/wiki/Environment_variable

13704 questions
6
votes
2 answers

Can't access Google AppEngine external libraries

Please help... I am running some python code from cygwin and I can't import the GoogleAppEngine (GAE) External Data API. I think this may be an environment variable problem. I am able to run GAE and the 'remote_data_api_shell.py' from the command…
codingJoe
  • 4,713
  • 9
  • 47
  • 61
6
votes
7 answers

.env variable returns undefined in React JS app

I am working on this react app and thinking of adding some environment variables inside, this is what I've done: installed the latest version of react-scripts added .env file on the root folder (the same location where node_modules folder is) added…
6
votes
3 answers

process.env.NODE_ENV === "developement" even in production

I want to deploy a React app (made with Create React App) + a Node server with Heroku, I did it, but my app can't fetch data from the server, In production, my process.env.NODE_ENV is equal to "development" which causes a lot of wrong stuff in my…
VersifiXion
  • 2,152
  • 5
  • 22
  • 40
6
votes
1 answer

The term 'cmake' is not recognized as the name of a cmdlet

I am trying to use CMake in the command line on Windows 10. This used to work before, but I don't know why it doesn't work anymore. I installed new version of CMake and added the path to the Environment Variables. However, when trying to use it in…
Hadi GhahremanNezhad
  • 2,377
  • 5
  • 29
  • 58
6
votes
2 answers

How to make PostgresQL use environment variables from .env file after re-creating the container (without removing the volume)

There is a message in Docker PostgresQL docs: Warning: the Docker specific variables will only have an effect if you start the container with a data directory that is empty; any pre-existing database will be left untouched on container…
Klimbo
  • 1,308
  • 3
  • 15
  • 34
6
votes
1 answer

flask command Error: No such command ["create_db"]

I want to run some commands from terminal with 'flask' command but it isn't working. The Following is my project structure- FlaskUserAuthentication ├── FlaskUserAuthentication │   ├── API │   │   ├── __init__.py │   │   ├── db_models.py │   │   └──…
6
votes
1 answer

Load ENV vars with dotenv before node-config

I want to load environment variables into the general config of my Express app. Locally I work with a .env file, but when deploying, I'll inject the env vars into the docker container. So, I've got a default.json with some hard-coded config values.…
Milkncookiez
  • 6,817
  • 10
  • 57
  • 96
6
votes
2 answers

dotenv gem doesn't get variables in Rails 6 or Ruby 2.6.5

I was using the dotenv gem to store environmental variables for development in a secrets file. The gem is no longer pulling the variables after upgrading ruby and rails on my computer. To try and track down the cause, and after a while of trying…
6
votes
4 answers

Gatsby, Environment variables not accessible in browser

I want to use environment variables. I created .env.development file and I put some variables. Then I include the dotenv plugin to read the variables in gatsby-config.js: require('dotenv').config({ path: `.env.${process.env.NODE_ENV}` }); The…
6
votes
2 answers

Require environment variables to be given to image when run using `-e`

I have a container image that requires an environment variable to be set in order to run. But if run with -d, unless the container is monitored, the person running the container won't notice something is missing. Is there a way that docker…
Nils André
  • 571
  • 5
  • 17
6
votes
2 answers

Nuxt environment variables exposed in client when uploaded to Zeit/Now

I am deploying a Nuxt App with Zeit/Now. In the development phase I was using a .env file to store the secrets to my Contentful CMS, exposing the secrets to process.env with the nuxt-dotenv package. To do that, at the top of the nuxt.config I was…
Moritz Laube
  • 369
  • 4
  • 14
6
votes
3 answers

How to securely store API keys in Flutter?

I'm using the googleapi's Flutter package and to use the Google Drive API, I need to put in credentials. My question is, how can I securely store them in my app so when I publish my app, they can't be taken. I found a cool package,…
Benjamin
  • 5,783
  • 4
  • 25
  • 49
6
votes
4 answers

How can I use SECRET_ENV in npm scripts inside of package.json?

I have a secret key called API_KEY that I want to access inside of package.json's scripts. package.json { "scripts": { "start": "web-ext run --api-key=API_KEY" } } My .env file contains API_KEY: API_KEY=abc123 How can I access the…
deadcoder0904
  • 7,232
  • 12
  • 66
  • 163
6
votes
2 answers

ImportError: libavcodec.so.57: cannot open shared object file: No such file or directory

I am working on a python project and I am sadly experienced that once I attempt to run the script from the PyCharm ide I get the following error message: from .cv2 import * ImportError: libavcodec.so.57: cannot open shared object file: No such file…
DalekSupreme
  • 1,493
  • 3
  • 19
  • 32
6
votes
0 answers

Why wouldn't the tox see the environment variable during install_command?

Given the tox==3.13.2, see details ++pip install tox Requirement already satisfied: tox in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (3.13.2) and the tox.ini: [tox] envlist = py-cythonized [testenv] ; simplify numpy…
alvas
  • 115,346
  • 109
  • 446
  • 738