Adapt startServer.py for deployment on server