A user is trying to run a Docker container for Discourse on AWS and encountering two errors: one related to a nil:NilClass error in the configuration and another about an unresolved upstream ‘discourse’ in Nginx. pfaffman advises that using a raw IP address is not supported and that a domain name must be assigned. golden_eagle confirms they have assigned a domain but it’s not resolving. pfaffman explains that an A record must be created in the domain registrar to point the domain to the correct IP address.
I, [2017-06-27T18:26:47.304367 #13] INFO -- : Loading --stdin
/pups/lib/pups/config.rb:23:in `initialize': undefined method `[]' for nil:NilClass (NoMethodError)
from /pups/lib/pups/cli.rb:27:in `new'
from /pups/lib/pups/cli.rb:27:in `run'
from /pups/bin/pups:8:in `<main>'
ERROR 2 on other task
2017/06/27 19:05:01 [emerg] 1#1: host not found in upstream "discourse" in /etc/nginx/nginx.conf:35
nginx: [emerg] host not found in upstream "discourse" in /etc/nginx/nginx.conf:35
Yes, I did. Discourse is running properly in the browser when I m using the IP but when I m trying to run it in the environment by AWS it gives me this errors.