After deploying, the website should be available both from the numeric IP url (like http://54.77.157.187) and the domain url (like http://staging.neurostars.org).
It works for the numeric IP but it doesn't for the domain. A service nginx reload from the webapp container is required.
After deploying, the website should be available both from the numeric IP url (like http://54.77.157.187) and the domain url (like http://staging.neurostars.org). It works for the numeric IP but it doesn't for the domain. A
service nginx reload
from the webapp container is required.I tried to add:
at the end of
run-webapp.sh.j2
but it didn't work.I suggest to add to the end
main.yml
the following:docker stop webapp; docker start webapp
Checking a website can probably be done with the uri module. Something like: