Deploy to Google App Engine

I’m trying to deploy to Google App Engine by following this tutorial: https://cloud.google.com/community/tutorials/elixir-phoenix-on-google-app-engine?hl=pt-br

In the tutorial it asks to setup my config/prod.exs in the following way:

config :appengine_example, AppengineExampleWeb.Endpoint,
  load_from_system_env: true,
  http: [port: "${PORT}"],
  check_origin: false,
  server: true,
  root: ".",
  cache_static_manifest: "priv/static/cache_manifest.json"

However, if I leave the host key blank, my production app redirects to https://localhost, if I set it to my custom domain enderecify.com or appspot domain enderecify.appspot.com, I get enderecify.com redirected you too many times..

Does anyone have an idea what should I do here?

1 Like

How is it redirecting, what code is doing that?

No clue, i wasn’t anything in my code. I gave up :slight_smile: