Commit 63ded57b authored by Jérome Perrin's avatar Jérome Perrin

software/theia: promise to wait for frontend to be available

This is required, otherwise published URL in slapos master is `"None"`
parent 15f92079
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
[instance] [instance]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = 1d495ab97a865b31ac7f2287cb76aed0 md5sum = 99dfaa031e58518326b731e9218aa425
[yarn.lock] [yarn.lock]
filename = yarn.lock filename = yarn.lock
......
...@@ -161,6 +161,7 @@ recipe = ...@@ -161,6 +161,7 @@ recipe =
instance-promises = instance-promises =
$${theia-listen-promise:name} $${theia-listen-promise:name}
$${frontend-listen-promise:name} $${frontend-listen-promise:name}
$${apache-frontend-url-available-promise:name}
[theia-listen-promise] [theia-listen-promise]
<= monitor-promise-base <= monitor-promise-base
...@@ -176,6 +177,13 @@ name = $${:_buildout_section_name_}.py ...@@ -176,6 +177,13 @@ name = $${:_buildout_section_name_}.py
config-hostname = $${frontend-instance:ip} config-hostname = $${frontend-instance:ip}
config-port = $${frontend-instance:port} config-port = $${frontend-instance:port}
[apache-frontend-url-available-promise]
<= monitor-promise-base
module = check_url_available
name = $${:_buildout_section_name_}.py
config-url = $${apache-frontend:connection-secure_access}
config-check-secure = 1
[apache-frontend] [apache-frontend]
<= slap-connection <= slap-connection
recipe = slapos.cookbook:requestoptional recipe = slapos.cookbook:requestoptional
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment