Пример #1
0
    def sync_server(self, path):
        LOG.info('Syncing server ...')
        utils.run_command_async('drush ss', input=['0.0.0.0\n', '{}\n'.format(self.port)], cwd=path)

        time.sleep(WAIT_TIME_SHORT)

        return self.configure_profile()
Пример #2
0
    def sync_server(self, path):
        LOG.info('Syncing server ...')
        utils.run_command_async('drush ss',
                                input=['0.0.0.0\n', '{}\n'.format(self.port)],
                                cwd=path)

        time.sleep(WAIT_TIME_SHORT)

        return self.configure_profile()
Пример #3
0
 def run_server(self, path, port):
     self.configure_network()
     LOG.info('Running server ...')
     command = '{} && {} && unset DJANGO_SETTINGS_MODULE && python manage.py runserver 0.0.0.0:{}'.format(
         utils.to_env(self.base_path),
         utils.cd(path),
         port)
     return utils.run_command_async(command)
Пример #4
0
 def run_server(self, path, port):
     self.configure_network()
     LOG.info('Running server ...')
     command = '{} && {} && unset DJANGO_SETTINGS_MODULE && python manage.py runserver 0.0.0.0:{}'.format(
         utils.to_env(self.base_path),
         utils.cd(path),
         port)
     return utils.run_command_async(command)
Пример #5
0
 def run_server(self, path):
     self.configure_network()
     LOG.info('Running server ...')
     command = '{} && export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 && chmod 777 grailsw && ./grailsw -Dserver.port={} run-app > grails_output'.format(
         utils.cd(path), self.port)
     return utils.run_command_async(command)
Пример #6
0
 def run_server(self, path):
     self.configure_network()
     LOG.info('Running server ...')
     command = '{} && node {}'.format(
         utils.cd(path), self.main_filename)
     return utils.run_command_async(command)