Questions tagged [env]
221 questions
6
votes
0 answers
Define shebang and encoding in python
Is there a difference between
(a) defining the encoding with the shebang
#!/usr/bin/env python -*- coding: utf-8 -*-
(b) defining the shebang and the encoding on separate lines?
#!/usr/bin/env python
#-*- coding: utf-8 -*-

alvas
- 115,346
- 109
- 446
- 738
5
votes
4 answers
How to run "bundle exec" from a specific Ruby version using RVM when shell environment is not there
Ok I have a confession to make - I still run a massive FCGI setup (just alot of servers configured). I am trying to adapt it to rvm. In the fcgi settings I can specify the commandline command to execute for running my application (Sinatra, Rack,…

Julik
- 7,676
- 2
- 34
- 48
5
votes
2 answers
How to get ENV type Laravel + VueJS + Homestead
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 where I can access it from my javascript code!
I…

Gustavo Bissolli
- 1,551
- 3
- 22
- 36
5
votes
2 answers
How to access laravel env variables in node js?
I'm trying to access APP_KEY env variable of laravel in my socket.io server installation, but don't know how to access any of the laravel environment variables.
Any help is appreciated.
user5928708
5
votes
2 answers
Gulp Env and Preprocess
In Grunt I used to use a plugin called env. That would allow me to define an environment in specific build. I had 3 builds. One was DEV which would use all the files split up individually. PROD would concat everything and RELEASE would concat and…

Chester Rivas
- 692
- 7
- 16
5
votes
1 answer
Loading a file and returning its environment
I'm attempting to do the following : (include() code below)
File1.lua
A = 5
File2.lua
file1 = include(File1.lua)
A = 1
print(A) -- 1
print(file1.A) -- 5
i've found exactly what i'm looking for but in lua 5.1 here :
Loadfile without polluting…

TomB
- 53
- 3
5
votes
2 answers
Passing a Fabric env.hosts sting as a variable is not work in function
Passing a Fabric env.hosts sting as a variable is not work in function.
demo.py
#!/usr/bin/env python
from fabric.api import env, run
def deploy(hosts, command):
print hosts
env.hosts = hosts
run(command)
main.py
#!/usr/bin/env…

mcsrainbow
- 370
- 2
- 12
5
votes
2 answers
python fabric no host found must manually set 'env.host_string'
Is there any way to get this to work with env.hosts? As opposed to having to loop manually whenever I have multiple hosts to run this on?
I am trying to use the fabric api, to not have to use the very inconvenient and kludgey fabric command line…

Bill Rosmus
- 2,941
- 7
- 40
- 61
4
votes
5 answers
How do I convert an environment variable to an object in JS?
I'm trying to convert an environment variable into an object of values for configuration in JavaScript but I don't know the best way to achieve this.
The idea would be to output SAMPLE_ENV_VAR=value as:
{
sample: {
env: {
…

Adam Johnson
- 115
- 1
- 7
4
votes
3 answers
How to - multiple dropbox instances in Linux?
After looking around online it seems pretty easy to have multiple dropbox accounts running. All you have to do is change an environmental variable and then run dropbox. However, I've tried editing the .desktop file (see .desktop file specification)…

user5429087
- 139
- 2
- 10
4
votes
2 answers
What is the difference between system variable and environment variables in CAPL script?
What is the difference between system variable and environment variables in CAPL script with example?

Sachin Bharambe
- 263
- 3
- 4
- 16
4
votes
1 answer
Python (django) environment variables
I am working with django and virtualenvwrapper. My objective is to remove all sensitive information from the settings file per the 12Factor app suggestions (http://12factor.net) and ultimately deploy to heroku. When testing this locally, to achieve…

alexolivas
- 63
- 1
- 6
4
votes
2 answers
/usr/bin/env perl does work as command but not in perl script
I've got a perl script which contains the first line as follows:
#!/usr/bin/env perl
I already read that this is executed to find perl in the environment. But now, when I execute this on the command line /usr/bin/env perl, perl itself gets executed…

Florian Müller
- 7,448
- 25
- 78
- 120
4
votes
3 answers
What is difference between .env files and .ini files? which one is better?
I am a beginner PHP , I found out that Laravel has .env file to save some configurations and php also have a file format .ini to save config.
I want to ask what is the difference in both, is one is better from another. Should i add dotenv in my…

Puneet Singh
- 3,477
- 1
- 26
- 39
4
votes
0 answers
-bash: /usr/local/bin/npm: /usr/bin/env: bad interpreter: No such file or directory
I am trying to run this command npm install -g bower in my python virtual environment that I have my Django project enclosed in, and I end up getting the following error.
-bash: /usr/local/bin/npm: /usr/bin/env: bad interpreter: No such file or…
user4409008