jedireza / frame

:bulb: A user system API starter
https://jedireza.github.io/frame/
MIT License
739 stars 156 forks source link

Setup.js code not executing when in docker container #167

Closed ROODAY closed 7 years ago

ROODAY commented 7 years ago

After porting our project to docker, we tried running the setup.js file inside of a docker-run.sh, however only the first few lines execute. Even independent console.logs don't fire. Here's a snippet of the top of the file:

console.log("Env: " + process.env.NODE_ENV);

console.log("about to enter if")
if (process.env.NODE_ENV === 'docker') {
  console.log("inside if")
  ...
  console.log("created root user details inside docker env")
};

The only thing that fires is the first line, no idea why even the second console.log doesn't fire.

jedireza commented 7 years ago

Thanks for opening an issue. I have not tried using Frame inside of docker so I won't be much of a help. Please update this issue if/when you resolve the issue.