-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grunt 'build' copies the local env variable file (server/config/local.env.js) into /dist
#1570
Comments
Hi, I appreciate the quick turn-around, but this doesn't seem to work for me (maybe I'm taking crazy pills...) I updated to 3.3.0 and created a new project (yo-rc.json here) and both Here is what my Am I crazy? : ) Is it just me? |
Do you have this line? |
Yep, confirmed. As an aside, I think This is working for you though? maybe I have an out-of-date dep somewhere... (?) |
You know what, it's not getting copied anymore, but it's still probably getting put in As for your comment about |
I added the line to babel but it doesn't seem to be working for me. I also tried adding Per the discussion, it's awesome to see you've already considered it, you guys are awesome! It seems risky to me as a default, but, like you said, I can handle it on my side when I get the syntax figured out. Thanks for the support! |
@Awk34 I think this is still a problem, using Gulp + TypeScript.
If you add the following to ln. 45 of gulpfile.babel.js (I.e., to
|
@Aendrew we still copy |
@Awk34 Ah, I see. That sort of violates 12-factor ideas though, such that no instance ever has config outside of environment variables. AFAICT, local.env.js is mainly used while developing locally; generally one would use actual env vars in production, and the presence of local.env.js might actually even confuse things as it'd override the instance env vars set during deployment (Correct me if I'm wrong or I'm misunderstanding something here). My suggestion would be to remove all local env-related files from |
@Aendrew I don't believe it breaks the 12-factor idea you linked. Their own litmus test is as follows:
The A developer could possibly use the So I think it's fine the way it is, just load environment variables in |
@Aendrew I agree with @Koslun . I had originally excluded both, but reverted to only excluding the sample file. The regular |
The grunt 'build' task copies the local env variable file (server/config/local.env.js) into
/dist
– is this intentional? I've always modified my gruntfile to exclude this file from the 'copy' config, but that doesn't seem to work for me anymore with thebabel:server
task. I haven't been able to find the right syntax to exclude this file from the babel task...Q1) Should the local ENV vars be bundled into
/dist
with thegrunt build
task?Q2) If so, could someone help me with the syntax to exclude them on my end?
Thanks, great project!
The text was updated successfully, but these errors were encountered: