def handle_noargs(self, **options): abspath = os.path.abspath(".") cmd = "twistd " if not options.get('daemonize', False): cmd += "-n " cmd += "codenode-backend " cmd += "--env_path=%s " % settings.HOME_PATH run(cmd.split()[1:])
def handle_noargs(self, **options): cmd = "twistd " if not options.get('daemonize', False): cmd += "-n " cmd += "codenode-frontend " cmd += "--env_path=%s " % settings.HOME_PATH cmd += "--server_log=%s " % os.path.join(settings.HOME_PATH, 'server.log') cmd += "--static_files=%s " % settings.MEDIA_ROOT run(cmd.split()[1:]) run(cmd.split()[1:])