env Questions

9

Is it possible to set a docker ENV variable to the result of a command? Like: ENV MY_VAR whoami i want MY_VAR to get the value "root" or whatever whoami returns
Basidiomycete asked 20/1, 2016 at 22:10

8

Solved

My Python script beak contains the following shebang: #!/usr/bin/env python When I run the script $ ./beak, I get env: python\r: No such file or directory I previously pulled this script from...
Prima asked 17/10, 2013 at 11:46

3

#!/usr/bin/env python I put that at the top of a script. I've seen that should make the script runnable from the command line without the need for python programname.py. Unless I'm misunderstandi...
Irina asked 1/12, 2013 at 22:36

10

Solved

So I have Gentoo box with three PHP versions installed (nevermind the reasons): /usr/bin/php -> /usr/lib64/php5.4/bin/php /usr/bin/php5.5 -> /usr/lib64/php5.5/bin/php /usr/bin/php5.6 -> /usr/lib6...
Bronez asked 3/7, 2015 at 12:27

6

Solved

I have an array that I pull data from. festivals = ['bonnaroo', 'lollapalooza', 'coachella'] Since I'm using heroku, it may be better to replace it with an environment variable, but I'm not sur...
Uncertainty asked 22/7, 2015 at 0:56

13

Solved

I'm trying to enable the debug for my app but it looks like I don't have any feedback. The environment is set to local (in the .env file) and if I run php artisan env I get this Current applic...
Demigod asked 28/11, 2014 at 15:56

10

Solved

I'm looking for a good way to figure out the name of the conda environment I'm in from within running code or an interactive python instance. The use-case is that I am running Jupyter notebooks w...
Victual asked 11/4, 2016 at 3:59

6

Solved

So I just published a build of laravel to my production server. But the .env file was readable when I uploaded it. So I uploaded it to root of my site next to the public_html/ directory. My quest...
Sundaysundberg asked 21/3, 2016 at 9:47

11

Solved

I've installed and have been using the Anaconda Python distribution, and I have started using the Anaconda (Conda) environment. I can use the standard conda install... command to put packages from ...
Fulfil asked 5/9, 2013 at 15:25

2

Solved

I have a .env file with a bunch of variables and I just came across an error. One of the variables has spaces. TEST="hello world" So when I run this, learned about in this answer here. env $(&...
Unwise asked 2/4, 2015 at 21:29

4

Solved

In my settings.yml file I have several config vars, some of which reference ENV[] variables. for example I have ENV['FOOVAR'] equals WIDGET I thought I could reference ENV vars inside <% %> li...
Diondione asked 3/5, 2011 at 6:44

4

I was wondering if there is anyway to get the environment of a declared variable. Say I already have declared a variable to an environment and want to use that variable's environment to declare a f...
Lanciform asked 16/5, 2013 at 9:3

4

Solved

I am using Laravel 5.1 I recently uploaded my project in shared hosting. but when i browse http://siteAddress.com/local/.env my .env file is visible. Is there any way to hide this file or redirec...
Mercurio asked 11/10, 2015 at 19:40

4

Solved

Will there be any difference or it's just a personal choice?
Andry asked 5/4, 2011 at 8:15

2

Solved

I need to run a set of RewriteCond statements if an ENV is true or defined (if not defined, then presumed false). I've been trying to use: RewriteCond %{ENV:IS_MOBILE} ^true$ RewriteCond ... and...
Straightaway asked 14/11, 2011 at 9:55

2

I know we can declare env variables to be used inside the script run by npm run command like so: TEMP_VARIABLE=value node app.js But if I need to use the declared variable across multiple npm run...
Grantgranta asked 26/11, 2015 at 22:23

3

Solved

I am taking over an old Rails app. No one has touched it in a year. The last developer left in April of 2015 and I have no way to contact him. I do have ssh access to the server, and I have access ...
Dachy asked 29/2, 2016 at 16:48

5

Solved

I cannot use %ENV var on my Perl script to use Oracle libs. BEGIN { $ORACLE_HOME = "/usr/lib/oracle/10.2.0.3/client64"; $LD_LIBRARY_PATH = "$ORACLE_HOME/lib"; $ORACLE_SID="prod"; $ENV{ORACLE_S...
Bicameral asked 28/12, 2011 at 14:15

4

Solved

Is it possible to specify a shebang line without knowing the path of the program you want to do the executing? maybe don't specify the path #!node or specify several options #!/usr/local/bin/n...
Overshoot asked 9/8, 2012 at 18:40

2

Solved

Given that I have the following JSON object, dbConfig = { "db": "default", "default": { "defaultDB": "sqlite", "init": "init", "migrations": { "directory": "migrations", "tableName": "migra...
Ptolemaic asked 8/5, 2016 at 12:17

2

Solved

The linux command line tool env can dump the current environment. Since there are some special characters I want to use env -0 (end each output line with 0 byte rather than newline). But how to l...
Deutzia asked 24/8, 2016 at 9:3

2

I am using .ini files (as per uWSGI docs). It's good practise to use environment variables, but I wasn't able to get the $+environment name syntax working. Is there a special syntax I can use to a...
Spitball asked 24/1, 2014 at 6:56

2

Solved

I am developing an app using Laravel + VueJS + Homestead and as everybody knows on Laravel 5.2 we have a env file where we can set env variables... I would like to do something like that but in way...
Recce asked 25/4, 2016 at 0:18

2

Solved

Just starting to dabble using laravel, and they encourage the use of .env files for development. Its recommended that you do not commit these files into version control, so when a new developer on...
Wakashan asked 8/1, 2016 at 19:42

1

I have a route like this http://localhost/inspection/show/{id} When I try to load the route at the same time. In different tabs, sometimes some of those tabs has the error "Whoops, looks like so...
Focal asked 6/8, 2015 at 15:17

© 2022 - 2024 — McMap. All rights reserved.