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
3 answers

Angular 4 environment specific robots.txt

Is there anyway to make environment specific assets to be loaded depending on the build environment (dev, stage, prod). My assets configuration in .angular-cli.json looks like this: "assets": [ "assets", "favicon.ico", "web.config", …
6
votes
5 answers

Setting GOOGLE_APPLICATION_CREDENTIALS for an MVC site hosted on azure

Title says it all pretty much. I tried uploading the json file to azure storage and referenced it's url when setting the GOOGLE_APPLICATION_CREDENTIALS environment variable under app settings, but when remotely debugging the site, apparently the…
6
votes
1 answer

Electron - restart app / refresh environment variables

I'm currently working on an Electron app which uses a third party software. At some point I'm checking if that software is installed on the user's computer (it has to be in PATH), and if it's not there I just run the installation. As I said, the…
Alin
  • 420
  • 1
  • 5
  • 17
6
votes
2 answers

Swift environment variable returns nil when building app

Description I have a problem with environment variables. When I build my app and it's running, everything goes fine, but when I press "stop" or I archive it for app store, the environment variable returns nil (or an empty string, I'm not quite sure…
6
votes
3 answers

Laravel 5.6 env('APP_BASE_URL') returns null

In staging and production environment, when I try to get my custom defined variable from .env file, it returns null. I have tried creating new Key for APP and cleared all sort of caches, but result is same. APP_NAME="App -…
danyal14
  • 367
  • 1
  • 4
  • 18
6
votes
1 answer

AspNet Core 2.0 Windows Service and unique ASPNETCORE_ENVIRONMENT variable

I have an ASPNET Core 2.0 Windows Service executing on server A. It was created using: sc create... Server A has sytem ASPNETCORE_ENVIRONMENT="Staging". The Windows Service uses appsettings.Staging.json for settings. I want to install a duplicate…
paultechguy
  • 2,318
  • 4
  • 25
  • 34
6
votes
3 answers

bash - how to find current shell command

When I run a command, I need to set some shell environment variable that holds the current command from inside ".bashrc". Actually I need to update PROMPT_COMMAND whenever a command is run, and I need the whole command line, from where I will pick…
Neo
  • 13,179
  • 18
  • 55
  • 80
6
votes
1 answer

Why doesn't SendMessageTimeout update the environment variables?

Question: I have an installer, and it installs some native dll's along with the program. The dll's are in a separate folder, which I added to the path environment variable. That was done successfully, and the variable shows up in path if I check the…
Stefan Steiger
  • 78,642
  • 66
  • 377
  • 442
6
votes
2 answers

nullable environment variables in Symfony

I know that env variables are string only. Symfony 3.4 supports env variables type casting. Is there a way to pass null value through int validator? .env DATABASE_PORT= #I also tried DATABASE_PORT=null,…
karser
  • 1,625
  • 2
  • 20
  • 24
6
votes
2 answers

Is adding Flask env vars to the virtualenv's activate script OK?

I'm working on my Flask project in a virtualenv. Every time I start a new terminal, I have to reinitialize these Flask environment variables: export FLASK_APP="server.py" export FLASK_DEBUG="1" My goal is to not have to type them in manually. I…
rjanke
  • 63
  • 1
  • 5
6
votes
3 answers

Set http_proxy environment variable with domain user and pass in windows

I've read many posts about this topic but unfortunately haven't been able to resolve my issue. I've been trying to set http_proxy and https_proxy environment variables in windows using command prompt to be able to access my company's web proxy. I'm…
Bahman_Aries
  • 4,658
  • 6
  • 36
  • 60
6
votes
1 answer

Environment variable not found: "DATABASE_URL" when running phpunit

I have implemented a simple test to check whether a page is displayed in my application: namespace App\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class MyControllerTest extends WebTestCase { public function…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
6
votes
2 answers

Different env variables for testing and development in nodejs

I'm developing a nodejs api in my free time, and I'm trying to implement testing now. I'm currently loading my environment variables from a .env file (loaded using dotenv), which include the DB_URI, DB_USER and DB_PASSWORD for my development mongodb…
6
votes
2 answers

reload process.env variables without reboot

Can we reload environment variables (process.env) with the updated values without restarting the nodejs app or server ? In other words, I have created a new environment variable (NEW_VARIABLE) and have set a value in my Windows 7 machine. Now I have…
ram sudheer
  • 139
  • 1
  • 13
6
votes
3 answers

Entering docker container with exec losing PATH environment variable

Here is my Dockerfile: FROM ros:kinetic-ros-core-xenial CMD ["bash"] If I run docker build -t ros . && docker run -it ros, and then from within the container echo $PATH, I'll…
maged
  • 859
  • 10
  • 24
1 2 3
99
100