You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Reapply "Use Nginx config with outlets (#913)" (#958)
This reverts commit 3c22348.
* Keep empty outlet files instead of removing them
This is necessary because `replace` operation checks if file exists
first. This is a fix for socketed template.
* Create placeholders for all templates
Copy file name to clipboardExpand all lines: templates/web.template.yml
+32-15Lines changed: 32 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -137,32 +137,48 @@ run:
137
137
- "rm /etc/nginx/sites-enabled/default"
138
138
- "mkdir -p /var/nginx/cache"
139
139
140
+
# Stop building the container if the Nginx outlets are missing
141
+
- "grep -q 'outlets/before-server' /etc/nginx/conf.d/discourse.conf || ( >&2 echo 'The \"before-server\" Nginx outlet is missing. This version of discourse_docker is not compatible with the chosen Discourse version.' ; exit 1 )"
142
+
- "grep -q 'outlets/server' /etc/nginx/conf.d/discourse.conf || ( >&2 echo 'The \"server\" Nginx outlet is missing. This version of discourse_docker is not compatible with the chosen Discourse version.' ; exit 1 )"
143
+
- "grep -q 'outlets/discourse' /etc/nginx/conf.d/discourse.conf || ( >&2 echo 'The \"discourse\" Nginx outlet is missing. This version of discourse_docker is not compatible with the chosen Discourse version.' ; exit 1 )"
0 commit comments