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
14,021
questions
0
votes
0
answers
8
views
can't add another folder path in environment variables
I just reinstalled Windows yesterday and I want to set it up again for my needs but why does my enviroment variables look different I didn't add another folder path to the same variables.
how do I add ...
0
votes
0
answers
13
views
How to use ProxyAgent with http_proxy and no_proxy environment variables
Im looking into how to use ProxyAgent to enable the functionality of https_proxy and http_proxy environment variables but I cant quite make sense of the documentation (https://www.npmjs.com/package/...
1
vote
0
answers
10
views
New values not being loaded for .env for SvelteKit app
I am unable to get Sveltekit to read the latest values from .env.
Any help on where are these old values coming from?
I have tried the following ways:
1.
import { SALESFORCE_CLIENT_SECRET, ...
-4
votes
0
answers
12
views
Scilab 2024 version has Chroot error but older version works perfectly
enter image description here
I am just student and I dont how to deal with such error. Is anyone have any knowledge about it? Thank you
Debugging the development of java problem while running the ...
0
votes
0
answers
15
views
How can I run a command before the playbook when using ansible ee?
I am trying to use community.general.bitwarden within an Ansible Execution Environment. To do this, I need to run the following command within the EE before starting the playbook.
export BW_SESSION=$(...
0
votes
0
answers
36
views
.env Variables inside the compiled JavaScript?
I have a React Webapp where i placed a .env file in the root directory and inside a file i use these env variables. Now when i did npm run build, in the compiled js file these env variables are ...
-2
votes
0
answers
17
views
MongoDB Community Server with Docker does not work [closed]
El problema es el siguiente. Estoy intentando ejecutar o correr un contenedor con un servicio de base de datos MongoDB, asi que segui la documentacion de MongoDB. Sin embargo el contenedor se detiene ...
0
votes
0
answers
16
views
Django apache environment variables
I have a django project in which environment variables from a .env file work just fine in development mode, I can read them in my settings.py by using
SECRET_KEY = os.getenv('SECRET_KEY')
but when I ...
0
votes
0
answers
6
views
Angular apihost environment
Currently for environment.development.ts there is configured an apihost variable.
For each dev environment it needs to be adjusted to use the local ip adres.
Currently the file has commented out on ...
-2
votes
0
answers
12
views
Adding ffmpeg path on remote server not working [closed]
I am working on mp3 audio processing and need the ffmpeg library for my code to work. In my local setup I have installed ffmpeg and the code is working fine. But I have to make changes to the ...
0
votes
0
answers
17
views
Uncaught ReferenceError: process is not defined using vite
i am facing this issue
Uncaught ReferenceError: process is not defined
at module.exports (cloudinary.js?v=2e344892:6593:34)
at ../backend/node_modules/cloudinary/lib/utils/index.js (cloudinary.js?v=...
1
vote
2
answers
69
views
Powershell: How can I get a list of Environment Variables with their values AND types (machine or user) from ALL user-profiles?
in Powershell I want to get a list of Environment Variables with their values AND types (machine or user) from ALL user-profiles.
If I use
gci env:
I'll get all environment variables that are ...
0
votes
0
answers
11
views
Nest.js @WebSocketGateway can not read .env variable
When I set the CORS options using the @WebSocketGateway decorator, it doesn't recognize the environmental variable.
Copy code
@WebSocketGateway({
cors: {
origin: process.env.ORIGIN,
...
0
votes
0
answers
20
views
Managing Python Virtual Environments on macOS with Custom Environment Variables
I'm seeking guidance on managing Python virtual environments efficiently on macOS. Currently, I'm running Python 3.9.6 as a system-wide installation and aim to create multiple isolated virtual ...
0
votes
1
answer
21
views
Reading an Environment Variable set at CodePipeline from a CodeBuild buildspec.yml
I've setup an AWS CodePipeline named test-pipeline-flow.
The Source step has being set to use an AWS CodeCommit named test-repo.
The Build step has being set to use an AWS CodeBuild named test-build-...
0
votes
1
answer
16
views
pyenv-win not overriding system Python version with local setting
I've installed pyenv-win 3.1.1 on Windows using Chocolatey and successfully installed Python 2.6 using pyenv install 2.6. I then tried setting the local Python version for my project by navigating to ...
0
votes
2
answers
53
views
How to set persistent environment variable using python
I have developed a project in python using Gemini API (for Linux). Since I am not comfortable with any other person using my API key, I have made my project such that the user has to provide their API ...
-2
votes
1
answer
34
views
What is the most elegant way of checking if multiple objects exist, in Node.js? [duplicate]
Suppose I have several environment variables, going by the hypothetical names OBJECT_A, OBJECT_B, OBJECT_C, etc.
I must implement a function doTheyExist() that must return a boolean.
I want to know ...
0
votes
0
answers
26
views
REACT_APP_ variable returns undefined
I am going mad with my react app's env variable that always returns "undefined".
I have created a file called ".env" in my root folder, hence where all the other react components ...
1
vote
1
answer
92
views
How do I use environnement variable in my CSS using nextJs to specify base color?
how can I use an environment variable to specify the base color in my CSS ?
I use NEXTJS
My colors are all defined as variables in my globals.css :
@layer base {
:root {
...
--primary: #...
0
votes
0
answers
22
views
Setup script before docker compose in Visual Studio Code
I am using Visual Studio Code with Docker on the project I am working on. I connect to the machine via SSH. I am having issues with properly setting up the environment when trying to run Compose Up. ...
0
votes
0
answers
25
views
Current file path where an env variable is located [duplicate]
I need to know where my actual env variable is stored.
If I do echo $PATH it outputs this:
/home/myuser/.nvm/versions/node/v20.9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/...
0
votes
0
answers
9
views
Environment variable in Windows - %JAVA_HOME% = C:\Program\Java\jdk1.8.0_271 instead of C:\Program Files\Java\jdk1.8.0_271
In Windows 10, I set some system environment variables via the System Properties window:
However, when I run set from the Command Prompt, I see "Program" in the path for JAVA_1_8_HOME and ...
0
votes
0
answers
13
views
next.js app with Google oAuth authentication to serve both development and production env
I'm trying to develop my app, while it deployed to a production server.
Next app worked fine with Google OAuth as Provider of library "next-auth" when
Authorised redirect URIs defined in GCP ...
0
votes
0
answers
27
views
Flask .env variables get read when running in pipenv shell, but not .venv
I have a React-Flask application that works well locally, but I've run into issues upon attempting to deploy it to Render. The home page loads, but when one attempts to log in, the server returns a ...
0
votes
1
answer
19
views
Flutter error after deleting environment variables
I am working on this flutter app with VScode and it worked fine until I deleted some environment variables of my system in order to add a new feature.
This is the error I get:
The supplied phased ...
-2
votes
0
answers
29
views
set environment variable in python that can be accessed by other programs [duplicate]
I have gone through so many SO solutions but couldn't find exact solution for this, actually i have a python file file.py in which im defining a environment variable. I want to use this environment ...
0
votes
1
answer
52
views
Visual Studio Code Not Recognizing findent Installation for Modern Fortran Extension Despite Correct Python Interpreter and PATH Configuration
I am working with the Modern Fortran extension in Visual Studio Code on Windows and keep encountering a persistent issue. Despite having correctly installed findent, fortran-language-server, and ...
-1
votes
0
answers
32
views
How to set ANDROID_HOME environment variable in Termux on MEmu player?
I am building a Appium script in Pydroid on MEmu player. So I installed Appium on Termux and run appium server. But when I run the script, I see this error.
enter image description here
MEmu player is ...
1
vote
0
answers
25
views
Firebase Cloud Messaging: how do i get access to environment variables the public folder
i'm working on React and Firebase and i'm trying to integrate Firebase Cloud Messaging. My main challenge is passing my app credentials to the firebase-messaging-sw.js. This file is in the public ...
0
votes
0
answers
11
views
Warning package.json: No license field $ TARGET_ENV='dev' gatsby develop
Iam trying learn Typescript and iam using public repo to start with it.
github repo: https://github.com/tahowallet/taho.xyz
when I run yarn start I got this warning
$ yarn start
yarn run v1.22.22
...
0
votes
1
answer
25
views
Trying to load .env file into to pm2 config - getting error
I have followed every example I can find online and cannot get my pm2 config to correctly load my Node server. I keept getting the error: Error: Cannot find module 'dotenv/config' . I have my .env ...
0
votes
1
answer
50
views
Why PYTHONPATH need to be exported? [duplicate]
I am getting some module not found excepiton when setting PYTHONPATH and then executing some py script :
$ PYTHONPATH=somepath/a/b
$ python myscript.py
Exception has occurred: ModuleNotFoundError ...
0
votes
0
answers
15
views
VSCode tasks.json: Environment variables not resolving correctly
I'm encountering an issue with setting up environment variables in my tasks.json file in the VSCode. Despite attempting various configurations, I haven't been able to get it to work as expected. Here'...
0
votes
0
answers
15
views
Why NEXT.JS 14.01 now work with .env on server?
On my server, there is a route on the server-side page with an environment variable.
My all file:
In docker its work:
example
app
env_file: .env.prod
db:
env_file: .env.prod
I tried adding ...
-1
votes
1
answer
29
views
How to pass Json to AZ Login Github Action?
I've seen some related questions and answers, but none that quite address what I'm looking for.
I am setting up a Github Actions workflow that uses a more limited Service Principal to login to Azure (...
0
votes
1
answer
32
views
Customizing environnment.ts depending on a value from runtime
I have an angular application that is using two values : loginURL & logoutURL in order to ensure correct workflow of authentication in the backend.
These values can change from an environment to ...
0
votes
1
answer
38
views
Pass env variables from azure pipelines to Vue app in 2.6 with Quasar with readonlyrootfilesystem
I have a Vue App running in 2.6 with Quasar, i'm changing the configuration of my task definition in AWS to readonlyrootfilesystem = true, the thing is, to the moment i have been using a sh script to ...
0
votes
1
answer
36
views
Locust : Not able to use the config value from env file
I am trying to run a locust test but I am not able to use the .env file values
.env file contains
"Value": diuqriqjqj
In the locust.py I have added
apiKey = os.environ.get("VALUE", ...
0
votes
0
answers
31
views
Homebrew ENV CMAKE set to OpenGL Framework by default. How to change?
I have on my Mac homebrew installed. The brew --env output as follows:
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/...
0
votes
0
answers
69
views
How to set Windows environment variables in Rust without restarting command prompt?
I need to programmatically set some system wide Windows environment variables using a tool written in Rust. My approach is to update the relevant registry entries and then broadcast a WM_SETTINGCHANGE ...
0
votes
0
answers
29
views
Spring override environment variable from application.properties
I have a spring project, which has an application.properties file, as well as an application-profile1.properties and an application-profile2.properties.
Inside application-profile1/2.properties there ...
0
votes
0
answers
28
views
Deploying to Heroku: Dynamic Env variables are undefined
I have an Express.js application with a /CreateShipment endpoint that takes in JSON data to create a specific shipment for a client's order. The issue I am running into is the clients have different ...
0
votes
0
answers
14
views
how uses fine secret static api keys with sveltekit and vercel
The situation is as follows:
I have created an application with sveltekit.
It needs to use a static API key in order to work.
I am familiar with the possibilities of using environment variables with ...
0
votes
0
answers
19
views
Playwright , How to send parameterised values such as username, password , url from command line?
playwright, ts and cucumber are the tools used for my framework
Playwright website methods
have tried what says in playwright website too
in element.ts
await pageFixture.page.goto(process.env.BASE_URL ...
0
votes
1
answer
59
views
Trying to pass in values from an env variable group to terraform
so I've been at this for a couple hours now at least. I've tried passing in two variables using the TF_VAR prefix. I've verified the pipeline is importing the var groups correctly in the logs. I'm ...
-9
votes
1
answer
132
views
How to Alias `python` to Python 2 (`/usr/bin/python2`) on WSL Ubuntu?
Context:
I am trying to compile JModelica Ubuntu (running on WSL - Windows Subsystem for Linux) and facing a challenge with Python version conflicts. The compilation process requires Python 2, but by ...
1
vote
1
answer
38
views
can't overwrite the env values from docker run
I have a dockerfile where I have web build and api build and I need a web build arg which needs to be overwritten later at the runtime. When I do as below then it does override as I see new value ...
0
votes
0
answers
37
views
PYSPARK ERROR: org.apache.spark.SparkException: Python worker exited unexpectedly (crashed)
Getting the below error while creating any sample dataframe:
24/03/10 11:30:40 WARN TaskSetManager: Lost task 0.0 in stage 0.0 (TID 0) (Siva executor driver): org.apache.spark.SparkException: Python ...
0
votes
0
answers
28
views
Please set the GIT_USER environment variable or explicitly specify USE_SSH
I'm encountering an issue while trying to deploy my Docusaurus site using the npm run deploy command. Here's the error message I'm getting:
OR
Error: Please set the GIT_USER environment variable, or ...