Trying to run docker container in aws. Having these errors


(KANIKA GANDHI) #1

ERROR 1 on one task:

Already up-to-date.

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

Any idea why I m getting this errors?


(Jay Pfaffman) #2

Did you follow the INSTALL-cloud instructions?


(KANIKA GANDHI) #3

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.


(Jay Pfaffman) #4

You need to assign a domain name. Using a raw IP number is not supported.


Can we run Discourse website only IP address not domain?
(KANIKA GANDHI) #5

I did assign a domain name but its not working with that


(Jay Pfaffman) #6

Then you need to resolve that problem first.


(KANIKA GANDHI) #7

When I enter the domain name that is in app.yml it gives me this error “This site can’t be reached”. What should I do?


(Jay Pfaffman) #8

You need to go to your registrar and create an A record that points from your domain name to the IP of your site.