All Questions
Tagged with production-environment environment-variables
73
questions
0
votes
0
answers
42
views
Error connecting to database: Error: Access denied for user ''@'localhost' (using password: YES) in Electron
I am building an application on electron.js. I want to set my application into production. I have already use electron-forge to build my app and its working perfectly. The only thing is the MySQL ...
1
vote
1
answer
197
views
How to use Django - cPanel environment variable
While setting up a Django app in cPanel, I can assign environment variables. However, I am having trouble using them. For instance, I made an assignment as seen in the picture. But when I use it in my ...
0
votes
1
answer
370
views
Storing environment variables and secrets on AWS EC2
I have a next.js app which I deployed on EC2. I wish to add some api keys and secrets. I've added some in the next.config.js file but it seems that didn't work.
Here is my next.config.js file:
module....
0
votes
0
answers
56
views
Issue Accessing Environment Variables Set in Systemd Service File in Next.js on Ubuntu Server
I'm encountering an issue with my Next.js application hosted on an Ubuntu server. I have set some environment variables within my systemd service file:
[Service] ... Environment=NEXT_PUBLIC_SYSTEM_ENV=...
1
vote
1
answer
459
views
Where to create .env file in a vue3 cli project?
I have built a project with Vue3-CLI.
I'm going to use .env and .env.development files in my project.
I created these files but process.env does not contain my variables such as SERVER_ROOT.
I have ...
3
votes
0
answers
299
views
Having trouble passing env variable values to Azure SWA-deployed frontend-only web app
My situation is the following:
Vite-based development environment. React.js frontend-only web site; deployed to Azure SWA successfully. I have included an instance of Google Maps JavaScript API as ...
0
votes
0
answers
41
views
how to use different environment file for publishing other than appsetting.json?
I have 3 environment file in .Net project i.e. appsetting.json, appsetting.Development.json & appsetting.UAT.json.
I wanted to publish my project with UAT environment rather than appsetting.json ...
0
votes
3
answers
821
views
For the PROD environment I have to use the same variable, but with a different value. How to do it?
I have a pipeline that uses variables from Library. For the IN, QA, and STAGE environments, I use a variable from shared variables. But now I need to create a PROD environment and deploy to PROD. And ...
0
votes
1
answer
976
views
how to set Environment variable in Json file. ( Clients Secrets, Client Id etc)?
my client-secret.json contains something like..
{
"web": {
"client_id": "asdfjasdljfasdkjf",
"client_secret": "...
0
votes
1
answer
2k
views
I have two env files in my project. But nestjs load the first env file only
I have two env files in my project. But nestjs load the first env file only. Any idea about this?
My app.module file:
The script that I used to run different env files in my project:
0
votes
1
answer
599
views
What is "inlining" means in Next.js "env" document?
I'm searching of 'env' concept at static build file in Next.js but can't understand what is "inlining" meaning in this context. Could someone give me more specific example?
This loads ...
1
vote
1
answer
1k
views
Despite requiring dotenv to load environment variables from .env file, they still get loaded from the machine /etc/environment
I am using dotenv to load environment variables from .env file when I am in the development environment.
server.js
const { config } = require("dotenv");
config();
console.log("🚀 ~ ...
0
votes
2
answers
231
views
Application error on heroku failed to update heroku config
I have hosted a django project on heroku and I'm trying to update my environment variables through heroku config but, I wrote the following command
heroku config:set SECRET_KEY="djang...j*...
2
votes
0
answers
308
views
Multiline env var in docker parsed differently in production
I have a docker-compose.yml file similar to this:
some_python_service:
...
CREDENTIALS: ${credentials:?err}
...
And a .env file located in the same dir as the docker-compose.yml:
credentials='{
...
-1
votes
1
answer
955
views
Node.js: How to read variables from the system?
I'm completely newbie with Docker and to make a deploy in production I need to read the "environment" variables instead of a file or instead of the package.json script line from the ...