<s> from iktomi import web <EOL> from iktomi . cli import app <EOL> import os <EOL> import sys <EOL> import logging <EOL> webapp = web . Application ( web . cases ( <EOL> web . match ( '<STR_LIT:/>' , '<STR_LIT:index>' ) | ( lambda e , d : web . Response ( '<STR_LIT>' ) ) <EOL> ) , web . AppEnvironment ) <EOL> def bootstrap ( ) : <EOL> logpath = os . path . join ( os . path . dirname ( __file__ ) , <EOL> '<STR_LIT>' ) <EOL> hellolog = logging . FileHandler ( logpath ) <EOL> logging . root . handlers . append ( hellolog ) <EOL> app = app . App ( webapp , bootstrap = bootstrap ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> app . command_serve ( port = '<STR_LIT>' ) </s>
