Questions tagged [env]
221 questions
0
votes
2 answers
I set my AWS keys and they show up in linux terminal, but Rails 4 app can't find them. Using aws-sdk and carrierwave-aws gems
Here's my carrierwave config file:
CarrierWave.configure do |config|
config.storage = :aws
config.aws_bucket = ENV.fetch('S3_BUCKET_NAME')
config.aws_acl = :public_read
config.asset_host = 'http://example.com'
config.aws_credentials =…

Tom Connolly
- 674
- 1
- 5
- 18
0
votes
2 answers
awk output to export variable
I have this command correctly build variable to export:
dbus-daemon --session --fork --print-address | awk -F"dbus-" '{ print $2 }' | awk -F",guid=" '{print ("export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-" $1 ",guid=" $2)}'
The output…

maudam
- 101
- 3
0
votes
1 answer
hadoop-2.2.0 compalition failing on Mac OS X 64bit
[ERROR] Failed to execute goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-7:javah (default) on project hadoop-common: Error running javah command: Error executing command line: Error setting up environmental variables: Cannot run program "env":…

Ramakanth77
- 99
- 4
0
votes
1 answer
Foreman Command Not Found Despite Having Package
I am trying to use foreman with my NodeJS project to run my ENV variable keys, but for some reason, despite have the foreman package installed and appearing in my node_modules I am having an issue trying to run foreman start. The error message is…

cphill
- 5,596
- 16
- 89
- 182
0
votes
1 answer
setting Environment from a file in Jenkins
My question is there any way to set up environment variables from a file during Jenkins build. I have a file called .xyz which has env variables.
I know there is a jenkins plugin but can we do it inside the execute shell box in jenkins??
I…

cedrajin21
- 65
- 1
- 8
0
votes
1 answer
Dynamically set api keys on frontend
Is there any way to set the variables for api keys on the front end. I am used to setting ENV variables on the backend, but is there something similar on the front end?

Patrick
- 1,410
- 2
- 19
- 37
0
votes
1 answer
Pass argc, argv, env to function using assembly
I am very new to assembly code and need to know how to pass command line arguments (argc, argv, env) in as function arguments. At line 2 (#RIGHT HERE) is where I do not know the implementation and I need to pass the three arguments into my main. Can…

Jeremy
- 322
- 2
- 10
0
votes
1 answer
laravel 4 environment setting in fortrabbit with getenev()
Hi I deploy my application based on laravel 4 to fortrabbit. I try setting local and production environment
in bootstrap/start.php I modify
$env = $app->detectEnvironment(function () {
return getenv('LARAVEL_ENV') ?: 'local';
});
on…

mardon
- 1,065
- 1
- 11
- 29
0
votes
1 answer
env windows parameter script
I have a script that I want to execute from anther machine. I have a client that sends the command for starting the script.
The problem is that the script calls another script which is not run, because it can't find it.
If I run the first script…

Boris Raznikov
- 2,373
- 10
- 34
- 56
0
votes
1 answer
env['REMOTE_ADDR'] with Goliath ruby
I have an API with Goliath gem (ruby) and I want to get the ip of the movile which is calling to my API. The case is, env['REMOTE_ADDR'] always give me 127.0.0.1 when some device is calling me. It shoud be the ip from the mobile is calling me,…

Luismiv85
- 50
- 1
- 10
0
votes
0 answers
Node.JS: Why can't get the expected number from env?
I have following code, its result is "Expected number is: undefined", why the process.env.number is undefined, it should be 123, what's wrong with the code? Please help out, thanks!
var exec = require('child_process').exec;
var exec2 =…

john
- 1
- 2
0
votes
1 answer
Can I setenv() using a envp?
I'm trying to setenv a new environement variable with setenv().
But I noticided that setenv() function set my new environement variable only if I use the environement "extern char **environ"
But I want to use the argument of the main() : "char…

Difender
- 495
- 2
- 5
- 18
0
votes
3 answers
Python encountering unexpected ')` in very short program
Python is seeing some problem with how I am opening a file with the code below
if __name__ == "__main__":
fileName = sys.argv[1]
with open(fileName, 'r') as f:
for line in f:
print line
It is producing the error…

KDecker
- 6,928
- 8
- 40
- 81
0
votes
2 answers
bundler dev env setup
I am trying to setup bundler dev env and have gotten past the first steps from https://github.com/bundler/bundler/blob/master/DEVELOPMENT.md (done with rake spec:deps and rake spec but with two pendings jobs at the end…

Sindhu S
- 942
- 1
- 10
- 23
0
votes
1 answer
How to send raw cookie string in Rails functional test
I'm looking to send raw cookie string to application controller for testing. One of the 'before filters' must scan raw cookie data (unescaped '+' => ' ') and decrypt it.
request.env['rack.request.cookie_string']
I tried several approaches with…

januszm
- 1,166
- 13
- 24