NoMethodError on docker run

I also got this error when trying to deploy on AWS ECS. I already passed the required environment variables from ./launcher start app. Container was running fine on my standalone EC2 server.