Advertisement
Guest User

Untitled

a guest
Nov 16th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. use Mix.Config
  2.  
  3. config :newsly,
  4. ecto_repos: [Newsly.Repo]
  5.  
  6. config :logger, :console,
  7. format: "$time $metadata[$level] $messagen",
  8. metadata: [:request_id]
  9.  
  10. import_config "#{Mix.env}.exs"
  11.  
  12. use Mix.Config
  13.  
  14. config :logger, :console, format: "[$level] $messagen"
  15.  
  16. config :phoenix, :stacktrace_depth, 5
  17.  
  18.  
  19. import_config "prod.secret.exs"
  20.  
  21. use Mix.Config
  22.  
  23. config :ex_aws,
  24. access_key_id: System.get_env("AWS_ACCESS_KEY_ID"),
  25. secret_access_key: System.get_env("AWS_SECRET_ACCESS_KEY"),
  26. bucket_name: System.get_env("BUCKET_NAME"),
  27. s3: [
  28. scheme: "https://",
  29. host: System.get_env("BUCKET_NAME"),
  30. region: "us-west-2"
  31. ]
  32.  
  33. config :newsly, Newsly.Repo,
  34. adapter: Ecto.Adapters.Postgres,
  35. # username: "patientplatypus",
  36. # password: "Fvnjty0b",
  37. username: "patientplatypus",
  38. password: "Fvnjty0b",
  39. database: "newslydb",
  40. hostname: "platypusnest.c9usvlx4atue.us-west-2.rds.amazonaws.com",
  41. # sometimes hostname is db (like in the docker-compose method - play with this one)
  42. pool_size: 10
  43.  
  44.  
  45. config :newsly, Newsly.Endpoint,
  46. http: [port: 4000],
  47. debug_errors: true,
  48. code_reloader: false,
  49. url: [scheme: "http", host: System.get_env("HOST"), port: 4000],
  50. secret_key_base: System.get_env("SECRET_KEY_BASE"),
  51. pubsub: [adapter: Phoenix.PubSub.PG2, pool_size: 5, name: Newsly.PubSub],
  52. check_origin: false,
  53. watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin",
  54. cd: Path.expand("../", __DIR__)]]
  55.  
  56. ENV AWS_ACCESS_KEY_ID=poop
  57. ENV AWS_SECRET_ACCESS_KEY=butts
  58. ENV BUCKET_NAME=s3 storage bucket (not eb related)
  59. ENV SECRET_KEY_BASE=moo
  60. ENV HOST=host name of my eb instance im uploading to
  61. ENV DBHOST=AWS rds host that holds postgres
  62. ENV USERNAME=patientplatypus
  63. ENV PASSWORD=poop
  64.  
  65. 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.
  66.  
  67. 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"
  68.  
  69. duplicate MIME type "text/html" in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11
  70.  
  71. [2017-11-16T18:02:33.927Z] INFO [29355] - [Application update app-8412-171116_115503@5/AppDeployStage1/AppDeployEnactHook/01flip.sh] : Completed activity. Result:
  72. nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11
  73. Stopping nginx: [ OK ]
  74. Starting nginx: nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf:11
  75. [ OK ]
  76. iptables: Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
  77. Stopping current app container: e0161742ee69...
  78. Error response from daemon: No such image: aws_beanstalk/current-app:latest
  79. Making STAGING app container current...
  80. Untagged: aws_beanstalk/staging-app:latest
  81. eb-docker start/running, process 1398
  82. Docker container e25f2b562f4f is running aws_beanstalk/current-app.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement