Ubuntu Pastebin

Paste from bdx at Tue, 30 Aug 2016 16:52:14 +0000

Download as text
1
2
3
4
5
6
7
8
from charmhelpers.core.hookenv import open_port

@when('website.available')
def configure_website(website):
    """Configure webserver - opens port 80 and 443
    """
    website.configure(port=config('port'))
    open_port(443)
Download as text