How to set enviroment variable Heroku - heroku

I need to set enviroment variable GOOGLE_APPLICATION_CREDENTIALS at .json format like service-account-file.json but i cant.
I tried this https://elements.heroku.com/buildpacks/buyersight/heroku-google-application-credentials-buildpack and this https://github.com/gerywahyunugraha/heroku-google-application-credentials-buildpack but it is not working.Heroku => java.io.IOException: Error reading credential file from environment variable GOOGLE_APPLICATION_CREDENTIALS, value 'google-credentials.json': File does not exist.

There is no such ways to set environment variable from json file you can use the environment variable like process.env.VARIABLENAME and define that variable name in config
Here i attach the screenshots from where you can define the variable

Related

How to Get Environment Value in Config File

Currently, I have an environment variable in my .env file.
MY_NAME_TEST=Testing
How do I pass that variable as part of a path in a config file? I'm trying to get a path similar to below:
base_path('Plugins/Testing/Database/Migrations/')
Notice the "Testing" part of the path in the sample above; I need that name to be different each time.
You're able to retreive the values anywhere in your laravel project by making use of the env function.
env('MY_NAME_TEST'); // returns "Testing"
In your case it would be used like so:
base_path('Plugins/' . env('MY_NAME_TEST') . '/Database/Migrations/'
The second parameter the env function takes is a default value if a value is not already set.

Set local_tmp as an ansible variable

Is it possible to set local_tmp as a variable in a playbook or pass it on the command-line instead? The only way, as I see it, to set this variable is by writing it to a file in a pre-determined location or by creating the file in an arbitrary location and setting the environment variable ANSIBLE_CONFIG to point to it.
What I want is to overrirde the default value of local_tmp by specifying it on either the command-line or in a playbook.
You can do:
ANSIBLE_LOCAL_TEMP=/tmp/.ansible/tmp ansible-playbook myplaybook.yml

how do I get the value of an environment variable in Applescript?

Specifically, I need to retrieve the value of the current user's HOME variable. But I would prefer that the answers be generically applicable to any environment variable.
system attribute "HOME" retrieves the value of environment variable HOME.
The mechanism works generically:
set envVarName to "SHELL" # sample variable name
system attribute envVarName # returns, e.g., "/bin/bash"

Is there a way to assign the output of a step to another environment variable on Bitrise?

The Xcode archive step creates this variable: ${BITRISE_DEPLOY_DIR} and read that pilot uses the PILOT_IPA environment variables for the IPA directory.
Is there a way to assign the output (BITRISE_DEPLOY_DIR) to another environment variable (e.g.: $PILOT_IPA)?
You can do that by using envman (https://github.com/bitrise-io/envman) which is part of the bitrise CLI tool stack.
To assign the value of an existing Environment Variable (Step outputs are just regular Environment Variables) you can use a Script step, and specify this as the content:
#!/bin/bash
echo "BITRISE_DEPLOY_DIR: $BITRISE_DEPLOY_DIR"
envman add --key PILOT_IPA --value "$BITRISE_DEPLOY_DIR"
This'll first print the value of the BITRISE_DEPLOY_DIR environment variable, and then with envman add it'll add a new environment item with the key PILOT_IPA and the value of $BITRISE_DEPLOY_DIR.

Using user defined variables in the path of a results file in JMeter

I want to write a results CSV file in JMeter which contains a variable in path of the file I write.
E.g.
C:\\Users\\User1\\test-results\\${output}.csv
But I only seem to be able to use predefined variables like ${__time(ddMMyyHHmmss)}
Is there a way to use user defined variables in the path? I have successfully done this to find input files by defining the variable in the test plan node as a User Defined Variable.
I managed to use user defined variable in the path of result file using JMeter 2.9. REPORT is a user defined variable with value REPORT. It gives me file named REPORT.csv
In JMeter 3.1(?) (or Windows?) a double slash is required in the path.
I have used the following successfully:
c:\\jmeter\\results\\${testId}\MyReport.csv
c:\\jmeter\\results\\${testId}\MyReport.csv
c:\\jmeter\\results\\${__time(yyyyMMddHHmm)}\MyReport.csv
c:\\jmeter\\results\\${__time(yyyyMMddHHmm)}.csv
${testId} is a User Defined Variable configured in the Test Plan and set to ${__time(yyyyMMddHHmm)}

Resources