Exemplo n.º 1
0
def run(LIVE=False):

    # Do not run as live unless this module is main
    if __name__ != "__main__":
        LIVE = False

    # Run the web server
    serverApp = Server()
    serverApp.start()

    # Run MetroEscalators twitter App
    escalatorApp = EscalatorApp(LIVE=LIVE)
    escalatorApp.start()

    # Run MetroElevators twitter App
    elevatorApp = ElevatorApp(LIVE=LIVE)
    elevatorApp.start()

    # Run HotCar twitter app
    hotCarApplication = HotCarApp(LIVE=LIVE)
    hotCarApplication.start()

    # Run the web page generator
    webPageGenerator = WebPageGenerator()
    webPageGenerator.start()

    # Run forever
    while True:
        gevent.sleep(10)
Exemplo n.º 2
0
def run(LIVE=False):

   # Do not run as live unless this module is main
   if __name__ != "__main__":
       LIVE=False

   # Run the web server
   serverApp = Server()
   serverApp.start()

   # Run MetroEscalators twitter App
   escalatorApp = EscalatorApp(LIVE=LIVE)
   escalatorApp.start()

   # Run MetroElevators twitter App
   elevatorApp = ElevatorApp(LIVE=LIVE)
   elevatorApp.start()

   # Run HotCar twitter app
   hotCarApplication = HotCarApp(LIVE=LIVE)
   hotCarApplication.start()

   # Run the web page generator
   webPageGenerator = WebPageGenerator()
   webPageGenerator.start()

   # Run forever
   while True:
       gevent.sleep(10)
Exemplo n.º 3
0
#!/usr/bin/env python
"""
Run a local instance of the DCMetroMetrics server
for local testing.
"""

# Local Testing
import test.setup
from gevent import monkey; monkey.patch_all()
from dcmetrometrics.web.server import Server

print 'Running the server locally....'
serverApp = Server()
serverApp.start()
serverApp.join()

Exemplo n.º 4
0
#!/usr/bin/env python
"""
Run a local instance of the DCMetroMetrics server
for local testing.
"""

# Local Testing
import test.setup
from gevent import monkey
monkey.patch_all()
from dcmetrometrics.web.server import Server

print 'Running the server locally....'
serverApp = Server()
serverApp.start()
serverApp.join()