]> git.immae.eu Git - github/fretlink/terraform-provider-mailgun.git/blobdiff - scripts/launch-website.sh
Merge branch 'add_github_pages' of github.com:fretlink/terraform-provider-mailgun...
[github/fretlink/terraform-provider-mailgun.git] / scripts / launch-website.sh
index f146e75d62cafad6bf1cbce1f1ba2bf83194ea47..dda894dd6077717b2b186f309a67ff11b32631af 100755 (executable)
@@ -1,10 +1,12 @@
 #!/usr/bin/env bash
 
+# sleep and the sub-command are there to make sure wget is called *after* `make website` has started. This ensures the website to be fetched correctly.
 (sleep 10;
 wget --recursive --no-parent --domains localhost --page-requisites --html-extension --convert-links --no-clobber http://localhost:4567/docs/providers/mailgun/;
 
 rm -rf terraform-provider-website;
 mv localhost:4567/ terraform-provider-website;
+mv index.html terraform-provider-website/index.html
 
 docker stop "$(docker ps -q)") &