gpt4 book ai didi

node.js - 在 Google App Engine 上设置 AppRTC (WebRTC)

转载 作者:太空宇宙 更新时间:2023-11-03 22:15:41 26 4
gpt4 key购买 nike

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

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

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

网址 - 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/

此处提到的每个命令都应从应用程序文件夹的根目录执行。 (即克隆应用程序的文件夹)

关于node.js - 在 Google App Engine 上设置 AppRTC (WebRTC),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29673397/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com