diff --git a/create-and-deploy-charms.rst b/create-and-deploy-charms.rst index 20f8ab6fa390b2aa006b56cbe975add8196b538f..5417b8f731021bf785a4b7abb6e9277296b3b756 100644 --- a/create-and-deploy-charms.rst +++ b/create-and-deploy-charms.rst @@ -286,7 +286,7 @@ Configure the Wordpress application according to https://help.ubuntu.com/lts/ser .. code-block:: python - @when_all('wordpress.installed', 'wordpress.database_is_ready') + @when_all('wordpress.ready', 'wordpress.database_is_ready') def config_php(): status_set('maintenance', 'configuring wordpress') mysql = relation_get() @@ -297,6 +297,7 @@ Configure the Wordpress application according to https://help.ubuntu.com/lts/ser context={ 'my_database': mysql }) + open_port(80, protocol='TCP') status_set('active', 'Ready') @@ -310,7 +311,7 @@ Configure the Wordpress application according to https://help.ubuntu.com/lts/ser .. code-block:: python from charms.reactive import when, when_not, set_flag, hook, when_all - from charmhelpers.core.hookenv import status_set, relation_get, log + from charmhelpers.core.hookenv import status_set, relation_get, log, open_port from charmhelpers.core.host import write_file, service_restart from charmhelpers.core.templating import render import charms.apt