environment-variables

sendgrid username and password environment variables are not read when action mailer is executed

陌路散爱 提交于 2019-12-24 09:43:12
问题 expected: telnet smtp.sendgrid.net 587 EHLO AUTH LOGIN Enter username in Base64 Enter password in Base64 235 Authentication successful Actual: Via localhost config/environments/development.rb config.action_mailer.raise_delivery_errors = true config/environment.rb ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { address: 'smtp.sendgrid.net', port: 587, domain: 'example.com', user_name: ENV["SENDGRID_USERNAME"], password: ENV["SENDGRID_PASSWORD"], authentication:

How to setup DevOps build for creat-react-app project with different environment vars depending on built branch?

我是研究僧i 提交于 2019-12-24 08:36:25
问题 We have a create-react-app project that gets some build parameters from the environment (e.g. Auth0 config), meaning that these environment variables affect the react build. We're working on an Azure DevOps build pipeline for this project, and while it's straighforward to define the variables on the pipeline's variables page, it's not obvious how to set them differently depending on which branch is being built. For example, we'd like the dev branch to build using or development tenant in

Use environment's variables in url parameters with Postman

回眸只為那壹抹淺笑 提交于 2019-12-24 07:49:25
问题 Is it possible to use environment variables into url parameters with postman? See picture below for example : 回答1: Yes. I'm using it. This is my screen. My IP is 192.168.0.38 like below. Now, I'm working my laptop. But, If I'm done working, I'll change hostName to the server domain. 回答2: it's 100% possible, I am using it currently. 来源: https://stackoverflow.com/questions/39846926/use-environments-variables-in-url-parameters-with-postman

mvn' is not recognized as an internal or external command

旧街凉风 提交于 2019-12-24 07:38:14
问题 I have created these variables with their respective values, but even after doing this, command prompt is not recognizing mvn command System Variables: name: M2_HOME value: C:\Program Files\apache-maven-3.2.1 name: M2 value: %M2_HOME%/bin; name: path value: %JAVA_HOME%\bin; %M2_HOME%\bin; 回答1: From Maven documentation page: Maven, like many cross-platform tools, can encounter problems when there are space characters in important pathnames . The instructions below will remind you of this for

what is windows equivalent command to 'export USER_SUPPLIED_PASSWORD=pswd'

倾然丶 夕夏残阳落幕 提交于 2019-12-24 07:19:15
问题 I am working on a GUI based application. In that, I need to fill several fields of password which I give same every time, since this is development environment. While using Linux, I can pass the command export USER_SUPPLIED_PASSWORD=pswd . But I am not able to find the same provision in Windows. 来源: https://stackoverflow.com/questions/40212411/what-is-windows-equivalent-command-to-export-user-supplied-password-pswd

what is windows equivalent command to 'export USER_SUPPLIED_PASSWORD=pswd'

北城以北 提交于 2019-12-24 07:18:03
问题 I am working on a GUI based application. In that, I need to fill several fields of password which I give same every time, since this is development environment. While using Linux, I can pass the command export USER_SUPPLIED_PASSWORD=pswd . But I am not able to find the same provision in Windows. 来源: https://stackoverflow.com/questions/40212411/what-is-windows-equivalent-command-to-export-user-supplied-password-pswd

Whats the difference between the “java” file found in “jdk1.8.0_121/bin” and the one that's in “jdk1.8.0_121/jre/bin”?

那年仲夏 提交于 2019-12-24 07:15:41
问题 I need to set the JAVA_HOME variable and I don't know which route I have to choose or if it's the same one or another. I have two files named "java" one is into the "jdk/bin" folder and the another one is into "jdk/jre/bin" folder. What's the difference between them? Because searching over internet I see that there are people using one and another people using the other. 回答1: Whats the difference between the java file found in jdk1.8.0_121/bin and the one that's in jdk1.8.0_121/jre/bin ?

How to override web.config values in custom section in Azure Web App?

筅森魡賤 提交于 2019-12-24 05:46:28
问题 It is possible in Azure Web App to override web.config AppSettings section easily. E.g. if I have the following web.config: <appSettings> <add key="AllowedCORSOrigin" value="http://localhost:26674"/> </appSettings> I can override it in the app settings UI in the portal like that: I have also a custom section in the web.config: <AdWordsApi> <add key="OAuth2RefreshToken" value="TOKEN" /> </AdWordsApi> Is it possible to override it somehow as well? I have tried AdWordsApi.OAuth2RefreshToken and

Run script with path based on environment variable

自闭症网瘾萝莉.ら 提交于 2019-12-24 04:42:09
问题 I have environment variable ARTEMIS_HOME set to c:\artemis . PS C:\artemis_brokers> $env:ARTEMIS_HOME C:\artemis Under this directory I have a folder called bin that contains an artemis.cmd script. How can I run this script from anywhere in my PowerShell using the system variable? I have tried the following with no success: PS C:\artemis_brokers> $env:ARTEMIS_HOME/bin/artemis At line:1 char:19 + $env:ARTEMIS_HOME/bin/artemis + ~ You must provide a value expression following the '/' operator.

ROS catkin_init_workspace not found when spawned as process by PHP

百般思念 提交于 2019-12-24 04:01:19
问题 Let me elaborate: I am trying to spawn the catkin_init_workspace from PHP, using the proc_open like so: touch( "$dir/stderr.txt" ); chmod( "$dir/stderr.txt", 0755 ); $fp = fopen("$dir/stderr.txt", "w"); fclose($fp); $descr = array( 0 => array("pipe", 'r'), // stdin 1 => array("pipe", 'w'), // stdout 2 => array("file", "$dir/stderr.txt", "w")to file ); $pid = proc_open( "catkin_init_workspace", $descr, $pipes, $dir ); if (!is_resource( $pid) ) throw new Exception ( "`catkin_init_workspace`