зеркало из https://github.com/golang/vulndb.git
deploy: rename index to index.html
In all future deploys, deploy index.html file as "index.html" instead of "index", to avoid a naming conflict with the new "index/" folder. Instructions in README are also updated accordingly. Change-Id: I9f9e5bb994cb53afe0945459acbbe753234ed3a9 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/473755 Reviewed-by: Julie Qiu <julieqiu@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
This commit is contained in:
Родитель
5e1ee0b95f
Коммит
bcd4554fa9
|
@ -12,7 +12,11 @@ gsutil -q -m cp -r /workspace/legacydb/* gs://go-vulndb
|
|||
gsutil -q -m cp -r /workspace/db/* gs://go-vulndb
|
||||
|
||||
# Deploy web files.
|
||||
for file in index 404 copyright privacy; do
|
||||
# index.html is deployed as-is to avoid a name conflict with
|
||||
# the "index/" folder, but other HTML files are deployed without the
|
||||
# ".html" suffix for a cleaner URL.
|
||||
gsutil cp webconfig/index.html gs://go-vulndb
|
||||
for file in 404 copyright privacy; do
|
||||
gsutil -h "Content-Type:text/html" cp webconfig/$file.html gs://go-vulndb/$file
|
||||
done
|
||||
gsutil cp webconfig/favicon.ico gs://go-vulndb
|
||||
|
|
|
@ -17,7 +17,8 @@ In exceptional cases, the files may need to be manually copied into the bucket.
|
|||
To do this, run this script:
|
||||
|
||||
```sh
|
||||
for file in index 404 copyright privacy; do
|
||||
gsutil cp webconfig/index.html gs://go-vulndb
|
||||
for file in 404 copyright privacy; do
|
||||
gsutil -h "Content-Type:text/html" cp webconfig/$file.html gs://go-vulndb/$file
|
||||
done
|
||||
gsutil cp webconfig/favicon.ico gs://go-vulndb
|
||||
|
@ -33,7 +34,7 @@ The initial setup has already been completed and no further action is required.
|
|||
The go-vulndb bucket was configured to display these pages via:
|
||||
|
||||
```sh
|
||||
gsutil web set -m index -e 404 gs://go-vulndb
|
||||
gsutil web set -m index.html -e 404 gs://go-vulndb
|
||||
```
|
||||
|
||||
Use `gsutil web get gs://go-vulndb` to display the current configuration.
|
||||
|
|
Загрузка…
Ссылка в новой задаче