3
# Copyright 2013 Canonical Ltd.
5
# This program is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU Affero General Public License version 3, as
7
# published by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful, but
10
# WITHOUT ANY WARRANTY; without even the implied warranties of
11
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
# PURPOSE. See the GNU Affero General Public License for more details.
14
# You should have received a copy of the GNU Affero General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
from restish.app import RestishApp
20
from imagebuilder.resources.root import Root
22
logging.basicConfig(level=logging.DEBUG)
26
"""Build the wsgi app object."""
27
app = RestishApp(Root())
32
if __name__ == '__main__':
33
from wsgiref.simple_server import make_server
34
httpd = make_server('', 8000, app)
37
except KeyboardInterrupt: