Copy vitrage app.wsgi when deploy install_type binary

Target WSGI script not found or unable to stat:
/var/www/cgi-bin/vitrage when deploy install_type binary

Change-Id: Ia7de5db13eea21d976e919945769ac7d48bb04f7
This commit is contained in:
Kien Nguyen 2018-10-29 14:50:36 +07:00 committed by Andreas Jaeger
parent e457d0704f
commit 8aac00972d

View File

@ -15,7 +15,10 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'openstack-vitrage-common' 'openstack-vitrage-common'
] %} ] %}
{{ macros.install_packages(vitrage_base_packages | customizable("packages")) }} {{ macros.install_packages(vitrage_base_packages | customizable("packages")) }} \
&& mkdir -p /var/www/cgi-bin/vitrage \
&& cp -a /usr/lib/python2.7/site-packages/vitrage/api/app.wsgi /var/www/cgi-bin/vitrage/ \
&& chown -R vitrage: /var/www/cgi-bin/vitrage
{% elif base_distro in ['debian', 'ubuntu'] %} {% elif base_distro in ['debian', 'ubuntu'] %}