Reverted commit 088a2e72b8

This commit is contained in:
Dominic Grimm 2022-01-15 20:03:08 +01:00
parent 088a2e72b8
commit 9ef535b655
3 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ http {
# } # }
location /graphql { location /graphql {
proxy_pass http://backend; proxy_pass http://backend:8080;
} }
location /adminer { location /adminer {

View file

@ -32,5 +32,5 @@ FROM scratch as runner
COPY --from=micrate-builder /app/bin/micrate /bin/micrate COPY --from=micrate-builder /app/bin/micrate /bin/micrate
COPY --from=builder /app/bin/mw /bin/mw COPY --from=builder /app/bin/mw /bin/mw
COPY ./db ./db COPY ./db ./db
EXPOSE 80 EXPOSE 8080
CMD [ "mw" ] CMD [ "mw" ]

View file

@ -4,8 +4,8 @@ module MW
extend self extend self
def run : Nil def run : Nil
Server.run(80, [HTTP::LogHandler.new, HTTP::ErrorHandler.new]) do |server| Server.run(8080, [HTTP::LogHandler.new, HTTP::ErrorHandler.new]) do |server|
address = server.bind_tcp("0.0.0.0", 80, true) address = server.bind_tcp("0.0.0.0", 8080, true)
puts "Listening on http://#{address}" puts "Listening on http://#{address}"
server.listen server.listen
end end