Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule Registering.DriverController do
- require IEx
- use Registering.Web, :controller
- ....
- end
- def index(conn, _params) do
- drivers = Repo.all(Driver)
- IEx.pry
- ...
- end
- FROM elixir:latest
- MAINTAINER Your Name <email>
- RUN mix local.hex --force
- RUN mix archive.install --force https://github.com/phoenixframework/archives/raw/master/phx_new.ez
- RUN mix local.rebar --force
- WORKDIR /app
- web:
- build: .
- ports:
- - "4000:4000"
- command: mix phx.server
- environment:
- - MIX_ENV=dev
- - PORT=4000
- volumes:
- - .:/app
- links:
- - db
- db:
- image: postgres
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_HOST=db
Add Comment
Please, Sign In to add comment