okgrow / meteor-dotenv Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED: - Load environment variables from .env for Meteor projects
DEPRECATED: - Load environment variables from .env for Meteor projects
May be I'm missing something: it works locally but on remote deployment using meteor deploy
all env variables seems to be 'undefined'.
Is that expected behaviour or am I doing something wrong?
Meteor 1.0.1
I can't seem to use the .env to specify the MONGO_URL.
Any way around this? I can set other environment variables and access them using process.env.NAMEHERE
where .env
contains NAMEHERE=whatever
But for MONGO_URL
, I still see a Starting MongoDB...
message when I start my app using $ meteor
. Also if I console.log(process.env.MONGO_URL)
, I see mongodb://127.0.0.1:3001/meteor
in my server logs.
Now that mrt is no longer needed to manage deps - please consider rolling this into Atmosphere.
https://atmospherejs.com/i/publishing
Thanks.
When I meteor run ios
the env variables are not loaded. There's a fix for this?
I'm new to Node.js and Meteor. I got error as:
Your application is crashing. Waiting for file change.
Here is my code
var dotenv = Meteor.require('dotenv');
dotenv.load();
Meteor.startup(function(){
console.log(process.env.GOOGLE_API_KEY);
});
I wanted to ask since you state in your deprecation notice:
Meteor 1.3's integration with npm has made this package obsolete. You can now use npm's dotenv directly, but our recommendation is to use direnv, as it doesn't require making modifications to your project.
Can you please provide more info on how to make Meteor use npm's dotenv?
(direnv would be more hassle since would require to install and configure into developers' shells.)
Thanks a lot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.