web: fix zuul-build-dashboard homepage setting

A previous change broke the homepage update for zuul-build-dashboard
ci results.

Change-Id: Ie2344070425a2d0edab9c3edb15b0e2b577a02ce
This commit is contained in:
Tristan Cacqueray 2018-10-10 03:04:13 +00:00
parent da0baca57c
commit 8b0a30ce3d
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
- name: Update homepage for sub directory deployment
replace:
path: '{{ zuul.project.src_dir }}/web/package.json'
regexp: '"homepage": "/"'
replace: '"homepage": "./"'
regexp: '^{$'
replace: '{\n "homepage": "./",'
# NOTE: using "./" is not enough to support html5 links, even with
# rewrite rules for unknown files, accessing 'job/devstack' will make
# the dashboard load static files from 'job/static/...'