Closed vwrobel closed 8 years ago
OK I need to set env variables for Node from .env...
@vwrobel I'm also having this error, can you tell me how you fixed it?
Hello @grayontheweb. Unfortunatelly I just tested this package months ago and cannot remember precisely. I just remember that I had to set the env variables from the .env file in the root directory, one way or another. May be you can have a look at the dotenv package.
@grayontheweb Did you manage to figure it out? I am having the same issue.
I am running the same build command through foreman so it loads the .env file, but i still get Error: EACCES: permission denied, open '/bundle.js'
EDIT I was trying to run prod-build in development mode, hence the errors.
To load env variables I added this to the top of webpack server.js and config.js
var dotenv = require('dotenv'); dotenv.load();
No more errors :)
Hi Saikat,
So far I find your starter kit very clear: thank you for your work!
run dev
works fine but I get an error with your repo 'as is' just aftergit clone
when I launchprod-build
I cannot find a fix to that error. Do you have any idea of what might cause that?
Thank you for your time.