在Google App Engine上设置AppRTC(WebRTC)

我无法在Google App Engine上设置WebRTC。 以下是我在Google App Engine项目上部署webrtc应用程序的步骤。

  1. 克隆我的本地系统上的https://github.com/webrtc/apprtc 。
  2. 从apprtc / src / app_engine /复制app.yaml到本地存储库的根文件夹
  3. 编辑app.yaml [在Google App Engine上将“应用程序”设置为我的appid“ckwebrtc”]
  4. npm安装
  5. 咕噜生成
  6. appcfg.py –oauth2更新

但我得到“500服务器错误 – 服务器遇到错误,无法完成您的请求”。

url – https://ckwebrtc.appspot.com/

请帮助

更新:这是我得到的错误:

2015-04-16 22:34:26 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--oauth2', 'update', u'C:\\xampp\\htdocs\\heroku\\ckwebrtc']" 10:34 PM Application: ckwebrtc; version: 2 10:34 PM Host: appengine.google.com 10:34 PM Starting update of app: ckwebrtc, version: 2 10:34 PM Getting current resource limits. 10:34 PM Scanning files on local disk. 10:34 PM Scanned 500 files. 10:35 PM Scanned 1000 files. 10:35 PM Scanned 1500 files. 10:35 PM Scanned 2000 files. 2015-04-16 22:36:05,130 ERROR appcfg.py:1925 Invalid character in filename: node_modules/grunt-htmlhint/node_modules/htmlhint/node_modules/jshint/node_modules/shelljs/test/resources/ls/filename(with)[chars$]^that.must+be-escaped 10:36 PM Scanned 2500 files. 10:36 PM Scanned 3000 files. 10:36 PM Scanned 3500 files. 10:36 PM Scanned 4000 files. 10:36 PM Scanned 4500 files. 10:36 PM Scanned 5000 files. 10:36 PM Scanned 5500 files. 2015-04-16 22:36:55,687 ERROR appcfg.py:2454 An error occurred processing file '': [Error 3] The system cannot find the path specified: 'C:\\xampp\\htdocs\\heroku\\ckwebrtc\\node_modules/grunt-closurecompiler/node_modules/closurecompiler/node_modules/tar/node_modules/fstream/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/*.*'. Aborting. Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\appcfg.py", line 133, in <module> run_file(__file__, globals()) File "C:\Program Files\Google\google_appengine\appcfg.py", line 129, in run_file execfile(_PATHS.script_file(script_name), globals_) File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5468, in <module> main(sys.argv) File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5459, in main result = AppCfgApp(argv).Run() File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3019, in Run self.action(self) File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5115, in __call__ return method() File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3853, in Update self._UpdateWithParsedAppYaml(appyaml, self.basepath) File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3906, in _UpdateWithParsedAppYaml self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME) File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3791, in UpdateVersion return appversion.DoUpload(paths, openfunc) File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2445, in DoUpload self._AddFilesThatAreSmallEnough(paths, openfunc) File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2537, in _AddFilesThatAreSmallEnough for path in paths: File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2680, in FileIterator entries = set(os.listdir(os.path.join(base, current_dir))) WindowsError: [Error 3] The system cannot find the path specified: 'C:\\xampp\\htdocs\\heroku\\ckwebrtc\\node_modules/grunt-closurecompiler/node_modules/closurecompiler/node_modules/tar/node_modules/fstream/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/*.*' 2015-04-16 22:36:55 (Process exited with code 1) You can close this window now. 

我不确定这是否是Windows的问题。 我从koding.com (在线云)再次尝试,并成功地设置应用程序。

这是我做的。

 $ git clone https://github.com/webrtc/apprtc.git 

使用您的应用程序ID编辑app.yaml,package.json,mainfest.json等。

 $ sudo npm install grunt-cli $ sudo npm install $ sudo grunt build $ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc update ./out/app_engine/ 

如果您收到错误请求回滚,请执行以下命令:

 $ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc rollback ./out/app_engine/ $ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc update ./out/app_engine/ 

这里提到的每个命令都应该从应用程序文件夹的根目录执行。 (即您的应用程序被克隆的文件夹)