dont run migrations automatically
This commit is contained in:
parent
c046b8e5d2
commit
1469545429
|
@ -76,17 +76,17 @@ services:
|
|||
- db
|
||||
# volumes:
|
||||
# - ./services/bright/lib:/app/lib
|
||||
# develop:
|
||||
# watch:
|
||||
# - action: sync
|
||||
# path: ./services/bright/
|
||||
# target: /app/
|
||||
# - action: sync+restart
|
||||
# path: ./services/bright/application.ex
|
||||
# target: /app/lib/bright/application.ex
|
||||
# - action: sync+restart
|
||||
# path: ./services/bright/mix.exs
|
||||
# target: /app/mix.exs
|
||||
develop:
|
||||
watch:
|
||||
- action: sync
|
||||
path: ./services/bright/
|
||||
target: /app/
|
||||
- action: sync+restart
|
||||
path: ./services/bright/application.ex
|
||||
target: /app/lib/bright/application.ex
|
||||
- action: sync+restart
|
||||
path: ./services/bright/mix.exs
|
||||
target: /app/mix.exs
|
||||
|
||||
db:
|
||||
image: postgres:15
|
||||
|
|
|
@ -70,7 +70,9 @@ RUN mix release
|
|||
|
||||
## dev target
|
||||
FROM builder AS dev
|
||||
CMD [ "mix", "ecto.setup", "&&", "mix", "phx.server" ]
|
||||
# RUN mix ecto.setup
|
||||
RUN echo "balls. that is all."
|
||||
CMD [ "mix", "phx.server" ]
|
||||
|
||||
|
||||
# start a new build stage so that the final image will only contain
|
||||
|
|
|
@ -51,13 +51,13 @@ defmodule BrightWeb.Router do
|
|||
# get "/vtubers/:id/edit", VtuberController, :edit
|
||||
# end
|
||||
|
||||
resources "/vtubers", VtuberController do
|
||||
get "/vods/new", VodController, :new
|
||||
get "/vods", VodController, :index
|
||||
get "/vods/:id", VodController, :show
|
||||
post "/vods", VodController, :create
|
||||
get "/vtubers/:id/edit", VtuberController, :edit
|
||||
end
|
||||
# resources "/vtubers", VtuberController do
|
||||
# get "/vods/new", VodController, :new
|
||||
|
||||
# post "/vods", VodController, :create
|
||||
# get "/vtubers/:id/edit", VtuberController, :edit
|
||||
# end
|
||||
|
||||
|
||||
get "/tags/new", TagController, :new
|
||||
post "/tags", TagController, :create
|
||||
|
@ -86,6 +86,8 @@ defmodule BrightWeb.Router do
|
|||
# get "/vods/:id", VodController, :show
|
||||
|
||||
resources "/vods", VodController
|
||||
get "/vods/:id", VodController, :show
|
||||
get "/vods", VodController, :index
|
||||
|
||||
|
||||
get "/tags", TagController, :index
|
||||
|
|
Loading…
Reference in New Issue