Questions tagged [environment-variables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

what is the Traefik configuration for running ERPnext locally?

I'm not fully understanding the configuration for running ERPnext locally rather than, for example, on a VPS. root@mordor:/home/nicholas/git/frappe_docker# root@mordor:/home/nicholas/git/...
0
votes
1answer
17 views

How to access a fully qualified domain name through “localhost”?

About nine minutes into a tutorial on ERPNext I followed directions as: root@mordor:/home/nicholas/git/frappe_docker# root@mordor:/home/nicholas/git/frappe_docker# cat .env LETSENCRYPT_EMAIL=nicholas@...
0
votes
0answers
7 views

Sharing {local/staging/prod} {front/back}end .env-s between multiple devs

What is a good solution for sharing {local/staging/prod} {front/back}end .envs between multiple devs? Both front and back end need environment vars for {local/staging/prod} Some developers only need ...
2
votes
1answer
40 views

Pass environment variables from pipeline job A to pipeline job B

I passed params to pipeline B and set the environment variables from parameters. However, "${params.URL}" is evaluated as null. Pipeline A is declared in Jenkinsfile: pipeline { agent any ...
2
votes
1answer
56 views

What approach should I take to store environment variables for a repo?

I am setting up a new infrastructure as code repository for a small to medium size project. The problem I am currently trying to solve is how to store my environment variables such that they can be ...
1
vote
1answer
141 views

Why is Rails (with Nginx/Passenger via Ansible) unable to see my RAILS_MASTER_KEY environment variable?

I'm writing Ansible playbooks to provision an Ubuntu 18.04 server. I want to provision the server for a Rails application using Passenger and Nginx. I used geerlingguy.passenger from Ansible Galaxy ...
6
votes
4answers
6k views

Docker compose volume syntax valid for Windows and Linux

We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment. The local ...
1
vote
2answers
83 views

How to handle different credentials in continuous integration?

I am using teamcity to automatically build and test a nodejs application. The problem I am facing is that the application needs to have some environment variables set during the build phase, as well ...
3
votes
3answers
2k views

How to pass Gitlab env var with sensitive characters to bash script?

I have the following situation: I'm storing sensitive data in Gitlab's environment and then passing these variables to a deployment script in bash. Gitlab's env var: Key: sensitive_var Value: aaa$...
1
vote
1answer
81 views

Jenkins won't substitute variables when trying to check out from perforce

I want to generalize my code so that it can pull from perforce for any files marked with a type "perforce" because some files need to downloaded from the artifactory instead. I want to sub in the ...
2
votes
1answer
884 views

Can we reuse Variables across variable groups in Azure DevOps?

I'm using DevOps to deploy Azure Data Factory ARM template I'm using a deployment pipeline to take artifacts from a prior build pipeline and deploy to various environments (TEST, PROD) I've created ...
1
vote
1answer
8k views

Set environment variables then run script in Jenkins Scripted Pipeline

I am new to Jenkins, Groovy and pipelines. I have created a simple pipeline stage like so: //working build but not setting env variables node('build-01') { stage('Building') { echo "[*] ...
4
votes
4answers
1k views

docker-compose.yml - make network name configurable via environment variable

I have a docker compose file with env variables for stage specific configurations. As long as env variables are used in values in docker-compose.yml everything is fine, but the problem is with the ...
1
vote
1answer
6k views

How to define global variables in groovy file, which I want to load and consume?

I have a Jenkins parent groovy file which consumes the child groovy file Parent grooy file: ... def child = load 'child-groovy-file'; child.execute(); Child groovy file: a = "first letter"; b = "...
0
votes
2answers
598 views

How to get list of env variables from the root folder to jenkins job?

Using configure option, when we check the environment variables, we get only the variables which are available with in the folder or job. But, I want to get complete list of env variable from the ...
0
votes
3answers
84 views

Is there a php (or composer) command to change upload_max_filesize && post_max_size from terminal?

Is there a php (or composer) terminal command to change the php.ini variables upload_max_filesize and post_max_size from terminal to some value directly from terminal, without sed or awk operations? ...
2
votes
2answers
68 views

Environment variable names, when my development environment has multiple projects

The context is that I'm looking at doing staging/testing and production on a kubernetes cluster. Where I might have some code that looks like this: doSomething({ username: process.env....
4
votes
1answer
6k views

Accessing the committer's name as a Jenkinsfile environment variable

Using the env.BRANCH_NAME variable accessible in the Jenkinsfile outside of the pipeline{} block, I have set up a variable used to conditionally set the node used to build the git branch. I would like ...
11
votes
2answers
1k views

How should I store my environment variables?

This is a very broad question about methods and advice regarding environment variables / structure. But ultimately I'm looking for answers for the very specific question of 'How should I store my ...