14,289 questions
-1
votes
1
answer
19
views
Bad Option: --env-file=./env/.env.dev
I am unable to load the env file via start script in my package.json file because of which I am not able to work on my project, earlier with all these stated settings it used to work fine.
package....
0
votes
0
answers
16
views
How do I get python script which is dependent on an env. file to run in task scheduler?
I have a python script via jupyter notebook that runs fine in jupyter notebook. It relies on an env. file. How do I ensure that env. is also running if I use task scheduler. I drop the env file in the ...
0
votes
2
answers
18
views
.NET command line dependency injection fails when called from path
I have a command line app that uses .NET's dependency injection.
It works fine when called in its directory, like C:\GitHub\MyProject\bin\Debug\net9.0>MyApp
However, when I add it to the Path ...
0
votes
1
answer
14
views
getting a warning on k-means
I am running a k-means cluster analysis in python and am getting a warning.
UserWarning: KMeans is known to have a memory leak on Windows with MKL, when there are less chunks than available threads. ...
0
votes
1
answer
27
views
How can I forward an environment variable across build scripts within a Cargo workspace?
I'm working with a Cargo workspace that has two members: lib1 and lib2. I want to set an environment variable TEST_VAR in the build script of lib2 and access it in the build script of lib1. However, ...
0
votes
0
answers
30
views
Is there a way to check for a test vs. non-test environment in Rust? [duplicate]
I'm writing a CLI that does a lot of manipulation of files and directories. I'd like to set up a testing environment with some sample directories so that I don't actually destroy the real directories ...
-3
votes
1
answer
47
views
Error Handling Environment Variables Natively in Node.jsv22 Within a Container
I am trying to work with .env files natively, as starting from Node.jsv20 (I am currently using version v22.14.0), it is no longer necessary to install libraries like dotenv to manage environment ...
0
votes
1
answer
91
views
How to use List<String> environment variables in Spring Boot's application.yml? [closed]
I am using Spring Boot and trying to declare environment variables in List format in the application.yml file.
Here is the code:
// application.yml
kis:
domain: ${KIS_DOMAIN:domain}
appkey:
- ${...
0
votes
0
answers
38
views
Mongosh shell not running [closed]
I downloaded the mongodb shell file, copied the location of the mongosh.exe file and pasted in the system variables (created a new variable name for that). Followed all the steps. But running the .exe ...
0
votes
0
answers
25
views
No module named 'pywintypes'; seemingly problem with virtual environment
I've read through all the relevant posts to this question, but sadly most remain unanswered, or don't seem to apply to my specific situation.
I want to use the win32com module, which is part of the ...
-1
votes
0
answers
25
views
What's best practice for sharing secrets between multiple GitHub Projects with Different Environments (..., staging, production)? [closed]
I’m working with two separate GitHub projects:
Code Repository
Terraform Repository
The issue arises when we need to handle environment-specific values. For example, when pipelines are run on the ...
1
vote
1
answer
67
views
Using functions from other packages with .Call and undefined objects
As an example from the TTR package, the function runMin() is returned as:
function (x, n = 10, cumulative = FALSE)
{
x <- try.xts(x, error = as.matrix)
if (n < 1 || n > NROW(x))
...
0
votes
1
answer
54
views
ASP.NET Core Launch Profiles with Multiple Sites and Environment Variables
So I'm new to ASP.NET Core and I'm trying to configure environment variables in Visual Studio for the site we're developing. Right now I've got a Development launch profile, which I want to use with ...
0
votes
1
answer
24
views
Running a Python Script with Environment Variables from a .env File in Apache NiFi
I am trying to execute a Python script within Apache NiFi using either the ExecuteStreamCommand or ExecuteProcess processor. The issue I’m encountering is that my Python script relies on environment ...
0
votes
1
answer
65
views
How to access environment variables defined in dockerfile in helm chart value file
I have defined CATALINA_OPTS with default values in the Dockerfile and built a Docker image. While deploying to a Kubernetes cluster using a Helm chart, it seems that additional options cannot be ...
0
votes
0
answers
14
views
Passing Environment Variables in Bazel for rules_foreign_cc while using QNX Toolchain
I am currently working on building an example application using rules_foreign_cc with Bazel for QNX toolchain. While I am able to successfully build the hello-world application using the QNX toolchain,...
0
votes
2
answers
70
views
Environment variable in conda is not aligning with os.environ, possibly because of un-escaped dollar-sign
I am trying to set an environment variable SOME_VAR in a conda environment. The value begins with a $ character. Initially I didn't properly single-quote the variable value, which might have caused a ...
-1
votes
0
answers
17
views
Better way to read env variables compared to process.env.ENV_VAR?
I am using env variables like process.env.ENV_VAR and for client side access using process.env.NEXT_PUBLIC_ENV_VAR but when I forgot to add env then I am not able to identify unless my application ...
-1
votes
0
answers
68
views
How to dynamically set API URL in Angular based on domain?
I am working on an Angular 16 application that I deploy on IIS using Azure DevOps. The application is used by multiple clients, each with their own servers and domains.
Problem:
Currently, I define ...
-1
votes
0
answers
67
views
C:\Program Files\nodejs\node.exe: --r= is not allowed in NODE_OPTIONS
I installed Node.js on a new laptop. I cloned my Next.js project from Github and ran npm install for installing node modules, which ran properly.
To run my local development server, I am running npm ...
-1
votes
0
answers
30
views
How can my env variable be undefined in Next.js except local run?
I've been surfing long enough (or maybe don't) in the internet to find a solution in my Next TS app problem.
I'm using node version v22.3.0 and npm version v9.2.0.
Here's my .env file contents:
...
1
vote
2
answers
77
views
Storing secrets in a Flutter .env file
Am using .env file in flutter "dotenv" package, but since this package needs to add the .env file to your assets in pubspec.yaml file, you can find it later.
When you build the app even for ...
0
votes
1
answer
47
views
docker: invalid env file contains white spaces
I am trying to train a classifier model. I am following instructions which outline to use the format bellow. whenever I go to then train my model, docker returns this error. I am unsure what I need to ...
0
votes
0
answers
48
views
sbt envVars not propagated to sub-projects
I've had this issue in a project of mine and I've setup a minimal example reproducing the issue, it took me a while to figure out the problem.
But it seems that when I set Test / envVars in my build....
0
votes
2
answers
56
views
How to change environment variables at runtime in a SvelteKit App using the Node adapter?
I have a SvelteKit app that I am using with the Node adapter to run as a Node.js server. I would like to change the environment variables at runtime so that I can package the app into a container and ...
0
votes
1
answer
35
views
Set environment variable for Flask application in Azure web service
I have deployed my Flask app to Azure web app service. Locally I have a .env file which contains:
.env file
SECRET_KEY=122345
from dotenv import load_dotenv
from os import environ
load_dotenv()
...
-1
votes
0
answers
45
views
can someone tell me how to hide API keys on static site [duplicate]
in my js file i am using the razorpay API key directly which is not safe. And there are ways to fix this using .env file. But the thing is im not using the traditional backend services like nodejs, ...
0
votes
2
answers
42
views
NameError: name '_mysql' is not defined Mac Django
I was trying to run python manage.py run server while working with Django after changing my settings.py from this:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
...
-4
votes
0
answers
35
views
How to configure environment variables in Next.js for different environments with a single build?
I am working on a Next.js project and need to configure environment variables that change depending on the execution environment (dev, staging, production), but I want to build the project only once ...
-1
votes
1
answer
80
views
Output from environment variable in WSL with Getenv() is incorrect
I'm running Ubuntu 24.04.1 LTS distro on Windows via WSL but when I run:
myBoolEnv := os.Getenv("MY_BOOLEAN_ENV_VAR")
fmt.Printf("** [first]%s[second]\n", myBoolEnv)
And then on ...
-2
votes
0
answers
64
views
how to stop Windows from inserting a java path that I don't want in my PATH
I have two versions of Java installed, I have my path pointing tot he one bundled with Android Studio, but Windows seem to be inserting a bunch of path variables in front of my custom set paths.
C:\...
0
votes
0
answers
37
views
VS Code: How can I set an environment variable in the terminal and open a Jupyter notebook that sees it?
What I want to do
I am working on a multi-GPU server, and would like to open a Jupyter notebook that only runs on some currently unused GPU (which may change from session to session).
In other words, ...
0
votes
1
answer
34
views
Adding a Jar file to windows classpath so that every Vscode project can import it
Os:
Windows 11
VsCode
Plugins:
Java Language support -> Red Hat
Java Test Runner -> Microsoft
I am aiming to use a jar file in several projects using import (the name of the jar).* . I wish ...
0
votes
2
answers
110
views
Can Visual Studio Code override environment variables?
I've set up a devcontainer in a Visual Studio Code Ruby project, and the launch configurations don't seem to be able to override environment variables from the devcontainer. I set up the devcontainer ...
0
votes
1
answer
55
views
Add a value from an Azure DevOps Pipeline Library variable to an Aspire .NET Container's Env Var
There is an Azure DevOps Pipeline that has variables set in a Library. There is a Library group per environment, for example, 'dev' and 'uat'. The pipeline uses YAML to create the resources for an ...
0
votes
0
answers
30
views
Get env file values from a liferay's react module
I'm starting to use Liferay in a project and just created a React Module that has to fetch some API content after being authorised.
I could just hardcode user and password inside the component it will ...
1
vote
0
answers
37
views
How to parse list of strings to pydantic settings? [duplicate]
pydantic-settings can parse list of ints, but not list of strings
This works:
class Settings(BaseSettings):
my_list_of_ints: list[int]
os.environ["my_list_of_ints"] = "[1, 2, 3]&...
0
votes
0
answers
31
views
Read docker-compose environment mappings in entrypoint.sh
I'm looking for some help with dockerfile and entrypoint. I am trying to dockerize an app and write environment variables from my docker compose like
services:
test_container:
image: container:...
0
votes
0
answers
26
views
Cant run executable from CLion IDE
Try to build cmake project (originally from qt creator) in Clion IDE.
Its builded correctly.
But when i run it within Clion IDE it faild:
Unable to load dependent library
Its folder path available in ...
0
votes
2
answers
84
views
Laravel env configuration not updating in terminal even after clearing all cache
I am not sure whether this issue is related to Laravel itself or about terminal bash/zsh in my MacBook, but I still need to fix this. Here is the issue.
I tried to run php artisan migrate when I first ...
0
votes
0
answers
41
views
Vercel keeps saying that it is "Unable to detect a Project Id in the current environment" even when I already put the Project ID in the env
So I have a website written using Astro that collects stamps. It has an API written in React that will read from the Firebase DB. When I ran it locally, it works just fine. But when I hosted it to ...
0
votes
0
answers
22
views
Why is React production build code (npm run build) locking in environment variables and not updating on serve -s build?
I have a locally hosted project that I'm working on that utilizes a node server (accessing MongoDB), React JS frontend, and an Electron app (basically just a browser shell that connects to the React ...
1
vote
1
answer
106
views
How to set environment variables in `wrangler pages dev` for Nuxt + Cloudflare Pages project?
I'm building a Nuxt 3 application deployed on Cloudflare Pages, and I'm having trouble getting environment variables to work with wrangler pages dev dist/ during local development.
Setup
Nuxt: ^3.15....
1
vote
1
answer
45
views
How to incorporate --env-file into docker-compose.yml so it doesn't have to be passed in CLI?
I'm using Docker Compose to manage my services, and I want to load environment variables from a file without having to explicitly pass --env-file when running docker-compose up.
My Current Setup
I ...
0
votes
2
answers
36
views
How can I specify the password only once instead of using both PGPASSWORD and POSTGRES_PASSWORD in .env and .env.local?
The docker image needs the POSTGRES_PASSWORD environment variable to create the database with a password.
node-postgres needs PGPASSWORD.
Both need to be the same password.
I am using .env.local to ...
0
votes
1
answer
40
views
Docker is not getting the variables from env [duplicate]
I have two variables in my env.env file:
USER_NAME=user_name
HOME_DIR=home
And this is my docker-compose:
services:
serviceName:
container_name: container_name
image: image
ports:
...
1
vote
2
answers
66
views
How to use multiple debug launch profiles with Blazor?
My goal is to use multiple debug launch profiles and have multiple appsettings.json files with different Connection strings or Path variables.
I read the Microsoft docs on using multiple environments, ...
0
votes
0
answers
42
views
GitHub Action Environment Variables Empty (Cypress)
Hi I'm having a bit of trouble getting the Cypress tests to run when a pull request is created onto a certain branch. I'm having an issue with the environment variables where they're empty. The first ...
1
vote
1
answer
67
views
Running a sequence of commands from within powershell of VSCode
Each one of the following commands when entered manually in the normal windows command prompt (cmd, not powershell) runs fine one after the other:
cd cmake\windows\rel
"C:\Program Files (x86)\...
3
votes
1
answer
27
views
Get Click to not expand variables in argument
I have a simple Click app like this:
import click
@click.command()
@click.argument('message')
def main(message: str):
click.echo(message)
if __name__ == '__main__':
main()
When you pass an ...