def demo(ctx, reset=False):
    '''Set up the demo environment and run the server'''
    if reset:
        rmdb(ctx)

    ctx.run('demo check', pty=True)
    ctx.run('demo loaddemo', pty=True)
    ctx.run('demo runserver', pty=True)
Set up the demo environment and run the server