Guest User

Untitled

a guest
Mar 25th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. defmodule Registering.DriverController do
  2. require IEx
  3. use Registering.Web, :controller
  4. ....
  5. end
  6.  
  7. def index(conn, _params) do
  8. drivers = Repo.all(Driver)
  9. IEx.pry
  10. ...
  11. end
  12.  
  13. FROM elixir:latest
  14.  
  15. MAINTAINER Your Name <email>
  16.  
  17. RUN mix local.hex --force
  18.  
  19. RUN mix archive.install --force https://github.com/phoenixframework/archives/raw/master/phx_new.ez
  20.  
  21. RUN mix local.rebar --force
  22.  
  23. WORKDIR /app
  24.  
  25. web:
  26. build: .
  27. ports:
  28. - "4000:4000"
  29. command: mix phx.server
  30. environment:
  31. - MIX_ENV=dev
  32. - PORT=4000
  33. volumes:
  34. - .:/app
  35. links:
  36. - db
  37. db:
  38. image: postgres
  39. environment:
  40. - POSTGRES_USER=postgres
  41. - POSTGRES_PASSWORD=postgres
  42. - POSTGRES_HOST=db
Add Comment
Please, Sign In to add comment