CNode

NAE 1.1 mac 中使用问题:curl 测试不能?

Zzoomquiet发布于14 年前最后回复14 年前5 回复6261 浏览0 收藏

NAE 进行不断的改进非常兴趣吼,只是:

  • nae 1.1 命令行工具,使用很多出乎意外:

  • 比如说,什么是 RemoteJob [2] error ?!

    $ nae sup urisaok [INFO] * connection established ! -remote- [Delete] node_modules/ -remote- [Delete] urisaok/ -remote- [Modify] server.js -remote- [Modify] package.json -remote- [Add ] app.coffee -remote- [Delete] README.txt -remote- [Add ] README.md

    • total - 7

    [INFO] * using ".naeignore" to control transfer files [WARNING] * apply these actions? [yes|no] yes

    • RemoteJob[7 : 1] = urisaok:rmdir > node_modules/
    • RemoteJob[7 : 2] = urisaok:rmdir > urisaok/
    • RemoteJob[7 : 3] = urisaok:fileedit > server.js [WARNING] undefined [ERROR] * Total [7] . RemoteJob [2] error !
  • 是否服务端对,浏览器进行了限定?

    $ curl -v http://urisaok.cnodejs.net

    • About to connect() to urisaok.cnodejs.net port 80 (#0)
    • Trying 110.76.47.99... connected
    • Connected to urisaok.cnodejs.net (110.76.47.99) port 80 (#0)

    GET / HTTP/1.1 User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 Host: urisaok.cnodejs.net Accept: /

    • Empty reply from server
    • Connection #0 to host urisaok.cnodejs.net left intact curl: (52) Empty reply from server
    • Closing connection #0

突然,怎么也无法使用 curl 进行 测试了,,,

希望,进一步完善文档,給大家用起,,,

查看回复

回复 (5)

Z
zoomquiet#1·14 年前
引用 fish1. 应该是传输异常了,我查一下 . 2. 是因为上传到是在dev模式, curl v http://urisaok.dev.cnodejs.net . http://urisaok.cnod...

是也乎,昨晚, home adsl 网络真心不给力,,, 完全不知道 nae 的离线开发怎么整了,,,

F
fish#2·14 年前
引用 fish1. 应该是传输异常了,我查一下 . 2. 是因为上传到是在dev模式, curl v http://urisaok.dev.cnodejs.net . http://urisaok.cnod...

@ZoomQuiet 本地的话,除了一些限制(child_process),基本上和线上一样的。本地能运行起来的web应用程序,在nae上不用怎么调整,就能运行的

F
fish#3·14 年前
  1. 应该是传输异常了,我查一下 .

  2. 是因为上传到是在dev模式, curl -v http://urisaok.dev.cnodejs.net . http://urisaok.cnodejs.net 访问的是线上模式,需要 nae pub 一下 .

Z
zoomquiet#4·14 年前
引用 fish1. 应该是传输异常了,我查一下 . 2. 是因为上传到是在dev模式, curl v http://urisaok.dev.cnodejs.net . http://urisaok.cnod...

@fish 是也乎,是也乎,真心认可的,, 但是,在线编辑,实在不方便, git 提交又忒手动, nae 推非常接近 GAE 行为,很喜欢,但是在公司 T1 网络中尝试 nae sup / pub 都是:

[INFO]  * using ".naeignore" to control transfer files 
[WARNING]  * apply these actions?  [yes|no]
yes
* RemoteJob[7 : 1] = urisaok:rmdir > node_modules/
* RemoteJob[7 : 2] = urisaok:rmdir > urisaok/
* RemoteJob[7 : 3] = urisaok:fileedit > server.js
[WARNING] undefined
[ERROR] * Total [7] . RemoteJob [2] error !

錯誤吼,,,

参与回复
登录后即可参与回复。登录