Comments (8)
It sounds legit to drop .env
now that we have .praxrc
. I still like .env
better, because it's more generic across tools, but different tools allow different parsing... sigh. Maybe we could interpolate variables as they are read from .env
, looking in just parsed variables, then falling back to ENV
?
from prax.cr.
Regarding interpolation: You could support it if you want. It wouldn't matter much to me, as long as Prax at least supported simple interpolation like VAR=$OTHER_VAR
.
Although, for full compatibility with dotenv, Prax would also want to support other shell-isms, including optional export
, optional single or double quotes, optional {}
(like ${VARIABLE}
), and escaping the $
with \
(like STATEMENT=SHOW ME THE \$\$\$
). (See dotenv/parser.rb
and dotenv/variable.rb
.)
Personally, I wouldn't do it, as it seems to beckon maintaining a miniature embedded shell language.
from prax.cr.
Sigh, .env
should be a simple A=B
mecanism for providing the app with some per-install values, and then let the app interpolate the values, if necessary, from those bits...
from prax.cr.
Yep, this situation stinks. Another solution might be to keep the current ".env" parsing behavior, but allow the name of the file to be configured, so it could still be utilized, but not conflict with dotenv.
from prax.cr.
Another idea for implementing this: We rip the bandage off. We can immediately drop support for ".env", but if a ".env" file is detected in a project, Prax will print "Setting environment variables via '.env' has been removed. Please use a '.praxrc' shell script in the project to set environment variables instead. Disable this message by setting PRAX_ACKNOWLEDGE_ENV_REMOVAL=true
."
I figure this may be better than deprecation and eventual removal, since we can immediately save dotenv users from the same fate that I had, also the removal is going to inconvenience people at some point no matter what (some people will wait to deal with deprecation until the bitter end).
from prax.cr.
Sweet, we finally fixed it! 🤝 Can we make a release?
from prax.cr.
Yes: v0.7.0
from prax.cr.
Installed the .deb yesterday and it worked just dandy.
from prax.cr.
Related Issues (20)
- Name resolution with external service not working HOT 2
- Tests are failing and test runner hangs. HOT 1
- `make package` fails HOT 1
- Can installation be made easier on Debian 9? HOT 4
- Bad request when sending host header
- ERROR -- prax: kill: No such process HOT 1
- Compilation error in 0.7.0/master with Crystal 0.24.1 HOT 2
- Please create next release. HOT 3
- start prax manually
- HTTP 1.0 request might return empty response HOT 4
- $RBENV_VERSION HOT 5
- Does not work HOT 15
- Prax freezes after one of multiple applications is killed by the monitor HOT 9
- Cookies still getting combined into one header
- prax-binary: error while loading shared libraries: libevent-2.0.so.5 HOT 7
- https fails with no errors HOT 4
- OpenSSL Errors HOT 1
- Compile error HOT 3
- Not loading an app. HOT 3
- Error: can't find file 'thread' on require "thread" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prax.cr.