I'm deploying on aws with edeliver. The deploys run fine, but when I try to access the site in the console with curl localhost:8888
, I get a connection refused
error.
If I try to start the app with ./rel/bin/app_name console
, I get a (RuntimeError) expected the PORT environment variable to be set
. However my config/prod.exs
looks like this.
use Mix.Config
config :elixir_deploy, ElixirDeployWeb.Endpoint,
load_from_system_env: true,
http: [port: 8888],
ssl: false,
url: [host: "example.com", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json"
config :logger, level: :info
import_config "prod.secret.exs"
What am I missing here? It works if I set a PORT=8888
before the manual start, but I'd rather start automatically with edeliver