Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Mix.Config
- config :newsly,
- ecto_repos: [Newsly.Repo]
- config :logger, :console,
- format: "$time $metadata[$level] $messagen",
- metadata: [:request_id]
- import_config "#{Mix.env}.exs"
- use Mix.Config
- config :logger, :console, format: "[$level] $messagen"
- config :phoenix, :stacktrace_depth, 5
- import_config "prod.secret.exs"
- use Mix.Config
- config :ex_aws,
- access_key_id: System.get_env("AWS_ACCESS_KEY_ID"),
- secret_access_key: System.get_env("AWS_SECRET_ACCESS_KEY"),
- bucket_name: System.get_env("BUCKET_NAME"),
- s3: [
- scheme: "https://",
- host: System.get_env("BUCKET_NAME"),
- region: "us-west-2"
- ]
- config :newsly, Newsly.Repo,
- adapter: Ecto.Adapters.Postgres,
- # username: "patientplatypus",
- # password: "Fvnjty0b",
- username: "patientplatypus",
- password: "Fvnjty0b",
- database: "newslydb",
- hostname: "platypusnest.c9usvlx4atue.us-west-2.rds.amazonaws.com",
- # sometimes hostname is db (like in the docker-compose method - play with this one)
- pool_size: 10
- config :newsly, Newsly.Endpoint,
- http: [port: 4000],
- debug_errors: true,
- code_reloader: false,
- url: [scheme: "http", host: System.get_env("HOST"), port: 4000],
- secret_key_base: System.get_env("SECRET_KEY_BASE"),
- pubsub: [adapter: Phoenix.PubSub.PG2, pool_size: 5, name: Newsly.PubSub],
- check_origin: false,
- watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin",
- cd: Path.expand("../", __DIR__)]]
- ENV AWS_ACCESS_KEY_ID=poop
- ENV AWS_SECRET_ACCESS_KEY=butts
- ENV BUCKET_NAME=s3 storage bucket (not eb related)
- ENV SECRET_KEY_BASE=moo
- ENV HOST=host name of my eb instance im uploading to
- ENV DBHOST=AWS rds host that holds postgres
- ENV USERNAME=patientplatypus
- ENV PASSWORD=poop
- Environment health has transitioned from Warning to Severe. 100.0 % of the requests are failing with HTTP 5xx. ELB processes are not healthy on all instances. ELB health is failing or not available for all instances.
- 2017/11/16 17:59:46 [error] 28815#0: *99 connect() failed (113: No route to host) while connecting to upstream, client: 172.31.20.108, server: , request: "GET / HTTP/1.1", upstream: "http://172.17.0.2:4000/", host: "172.31.38.244"
- duplicate MIME type "text/html" in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11
- [2017-11-16T18:02:33.927Z] INFO [29355] - [Application update app-8412-171116_115503@5/AppDeployStage1/AppDeployEnactHook/01flip.sh] : Completed activity. Result:
- nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11
- Stopping nginx: [ OK ]
- Starting nginx: nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11
- [ OK ]
- iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
- Stopping current app container: e0161742ee69...
- Error response from daemon: No such image: aws_beanstalk/current-app:latest
- Making STAGING app container current...
- Untagged: aws_beanstalk/staging-app:latest
- eb-docker start/running, process 1398
- Docker container e25f2b562f4f is running aws_beanstalk/current-app.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement