Example #1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, division

from weiyu.shortcuts import inject_app
from weiyu.utils.server import cli_server


inject_app(conf_path='conf.yml')


if __name__ == '__main__':
    cli_server('cherrypy')


# vim:set ai et ts=4 sw=4 sts=4 fenc=utf-8:
Example #2
0
File: main.py Project: xen0n/vvw
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, division

from weiyu.shortcuts import inject_app
from weiyu.utils.server import cli_server

inject_app()

if __name__ == '__main__':
    cli_server('cherrypy')

# vim:set ai et ts=4 sw=4 sts=4 fenc=utf-8:
Example #3
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.


from gevent import monkey; monkey.patch_all()

from weiyu.shortcuts import inject_app
from weiyu.utils.server import cli_server

from dida.state import initstate


inject_app()
initstate()


if __name__ == '__main__':
    cli_server(
            'socketio',
            ('0.0.0.0', 8080),
            resource="socket.io",
            policy_server=True,
            policy_listener=('0.0.0.0', 10843),
            )


# vim:set ai et ts=4 sw=4 sts=4 fenc=utf-8:
Example #4
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals, division

from weiyu.shortcuts import inject_app
from weiyu.utils.server import cli_server

inject_app(conf_path='conf.yml')

if __name__ == '__main__':
    cli_server('cherrypy')

# vim:set ai et ts=4 sw=4 sts=4 fenc=utf-8: