codeskyblue/gohttp

Cannot use at all

Closed this issue · 19 comments

网页完全没办法用,跟你网站上build的一样。
自己的环境,linux mint17.3 npm 6.0.0 GO 1.6
screenshot_2016-05-03-11-23-50

It should work, follow the build step

go get -u github.com/jteeuwen/go-bindata/...
npm install -g webpack
npm install
make prod

BTW: the web build binary is broken, still thinking about how to fix it.

I set GOPATH to $HOME/golang , GOBIN to $GOPATH/bin.
then cd to GOPATH, git clone your project,
cd gohttp
go get -u github.com/jteeuwen/go-bindata/...
npm install -g webpack
npm install
make prod

run gohttp get the screenshot.

go get -d github.com/codeskyblue/gohttp
cd $GOPATH/src/github.com/codeskyblue/gohttp

then follow

go get -u github.com/jteeuwen/go-bindata/...
npm install -g webpack
npm install
make prod

.

Logcat as above, still get the screenshot!

I try to use node 4.4.3 but still as above. Is the html correctly?

I dont know, you can tell me which platform you need and I give you a pre build version.

x86_64

啊 能不能把操作系统也说下

Linux Mint 17.3啊,1楼已经讲了我的环境啦。Golang是1.6.2的,node试过6.0.0和4.4.3都一样

特意用chroot搞了个14.04的来编译,还是一个样子。。。。

@codeskyblue 你release的是可以用了,但是上传不了文件,传完显示404!!随便传的小文件

[Macaron] 2016-05-07 15:37:46: Started POST / for 113.68.xxx.xxx
[Macaron] 2016-05-07 15:37:46: Completed / 404 Not Found in 307.578µs
[Macaron] 2016-05-07 15:37:48: Started GET /?format=json for 113.68.xxx.xxx
2016/05/07 15:37:48 inspect /.gohttp.stat.json
[Macaron] 2016-05-07 15:37:48: Completed /?format=json 200 OK in 597.545µs

好吧,原来默认没有开启upload的。我的错

不知道自己编译的不行是不是因为这个呢?

npm WARN gohttp No repository field.

npm install之后报的warning

感觉npm执行的目录下面没有 package.json这个文件

但是实际是有的,在gohttp根目录运行的npm install

我的环境是这样的:

XDG_VTNR=8
LC_PAPER=zh_CN.UTF-8
MANPATH=/home/wzhy90/.nvm/versions/node/v6.0.0/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man:/usr/lib/jvm/default-java/man:/usr/lib/jvm/default-java/jre/man:/opt/depot_tools/man
SSH_AGENT_PID=2214
LC_ADDRESS=zh_CN.UTF-8
XDG_SESSION_ID=c1
DEVKITARM=/opt/devkitpro/devkitARM
LC_MONETARY=zh_CN.UTF-8
CLUTTER_IM_MODULE=xim
COMP_WORDBREAKS=    
"'><;|&(:
QT_STYLE_OVERRIDE=gtk
NVM_CD_FLAGS=
GPG_AGENT_INFO=/run/user/1000/keyring-KY0sUt/gpg:0:1
TERM=xterm
VTE_VERSION=3409
SHELL=/bin/bash
XDG_SESSION_COOKIE=ed030d3b153c3f70a739b38f5513c722-1462604738.926809-575630917
NVM_PATH=/home/wzhy90/.nvm/versions/node/v6.0.0/lib/node
GOBIN=/usr/local/go/bin
WINDOWID=67112705
LC_NUMERIC=zh_CN.UTF-8
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-KY0sUt
NVM_DIR=/home/wzhy90/.nvm
USER=wzhy90
JRE_HOME=/usr/lib/jvm/default-java/jre
LC_TELEPHONE=zh_CN.UTF-8
CLUTTER_BACKEND=x11
CCACHE_DIR=/mnt/ccache
DEVKITPRO=/opt/devkitpro
INSIDE_NEMO_PYTHON=
SSH_AUTH_SOCK=/run/user/1000/keyring-KY0sUt/ssh
UNZIP=-O CP936
WINEARCH=win32
USERNAME=wzhy90
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
ZIPINFO=-O CP936
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
DESKTOP_SESSION=cinnamon
PATH=/home/wzhy90/.nvm/versions/node/v6.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/default-java/bin:/usr/lib/jvm/default-java/jre/bin:/home/wzhy90/android-ndk:/home/wzhy90/android-studio/bin:/usr/local/go/bin:/opt/depot_tools
QT_IM_MODULE=xim
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist
LC_IDENTIFICATION=zh_CN.UTF-8
GDM_XSERVER_LOCATION=local
PWD=/home/wzhy90
XMODIFIERS=@im=fcitx
JAVA_HOME=/usr/lib/jvm/default-java
LANG=zh_CN.UTF-8
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
LC_MEASUREMENT=zh_CN.UTF-8
MDM_XSERVER_LOCATION=local
GDMSESSION=cinnamon
SHLVL=1
HOME=/home/wzhy90
XDG_SEAT=seat0
GOROOT=/usr/local/go
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
XDG_SESSION_DESKTOP=cinnamon
LOGNAME=wzhy90
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zZNXdfQoBZ,guid=5948f06d24a5af86ff6799bf572d93ca
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
CLASSPATH=/usr/lib/jvm/default-java/lib:/usr/lib/jvm/default-java/jre/lib:$CLASSPATH
QT4_IM_MODULE=fcitx
NVM_BIN=/home/wzhy90/.nvm/versions/node/v6.0.0/bin
GOPATH=/home/wzhy90/golang
USE_CCACHE=1
NVM_IOJS_ORG_MIRROR=https://iojs.org/dist
MDMSESSION=cinnamon
TEXTDOMAIN=im-config
WINDOWPATH=8
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
MDM_LANG=zh_CN.UTF-8
XDG_CURRENT_DESKTOP=X-Cinnamon
GTK_IM_MODULE=fcitx
LC_TIME=zh_CN.UTF-8
VDPAU_DRIVER=va_gl
TEXTDOMAINDIR=/usr/share/locale/
LC_NAME=zh_CN.UTF-8
XAUTHORITY=/home/wzhy90/.Xauthority
COLORTERM=gnome-terminal
_=/usr/bin/env

issue我先关了,看不出来怎么回事