Skip to content
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

** (Code.LoadError) could not load /config/config.exs #111

Open
sandeep-prabhu opened this issue Apr 3, 2019 · 2 comments
Open

** (Code.LoadError) could not load /config/config.exs #111

sandeep-prabhu opened this issue Apr 3, 2019 · 2 comments

Comments

@sandeep-prabhu
Copy link

When running the mix local.hex --force command via the docker file , we are getting these errors

** (Code.LoadError) could not load /config/config.exs
    (elixir) lib/code.ex:1147: Code.find_file/2
    (elixir) lib/code.ex:706: Code.eval_file/2
    (mix) lib/mix/config.ex:220: Mix.Config.eval!/2
    (mix) lib/mix/tasks/loadconfig.ex:38: Mix.Tasks.Loadconfig.load/1
    (mix) lib/mix/tasks/loadconfig.ex:28: Mix.Tasks.Loadconfig.run/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
    (mix) lib/mix/cli.ex:78: Mix.CLI.run_task/2

We checked that the files are in proper location , can someone confirm that is this problem with our elixer config side or from the docker file ?

@c0b
Copy link
Owner

c0b commented Apr 3, 2019

the /config/config.exs should be from your own project, are you sure it's properly mounted to the container?

@sandeep-prabhu
Copy link
Author

Thanks @c0b That issue is fixed , now we are facing issue with linking postgres with the elixer app

version: '3'
services:
  web:
    build: 
      context: .
      dockerfile: Dockerfile
    expose:
      - "4000"
    ports:
      - "4000:4000"
    volumes:
      - .:/app
    depends_on:
      - db
  db:
    image: "postgres:9.6.3"

This is the compose file works good , but when we do mix phx.server the server is not getting started .

Giving DB connection error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants