Code Monkey home page Code Monkey logo

Comments (38)

manandgod avatar manandgod commented on July 27, 2024

@jzp820927@Kisy@wz7465 @yinqiwen @redfrog999 distance00

这里人太少,只好冒昧打扰各位了,见谅,请各位大大帮个忙。

from gsnova.

jzp820927 avatar jzp820927 commented on July 27, 2024

你是说 releases 里面那个不能部署?你可以直接 git 源码部署。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

releases 里面那个我git push老出错,
提示
$ git push -f heroku master
error: src refspec master does not match any.
error: failed to push some refs to 'heroku'

我想要的是经过godep save的pass,直接git push就可以了
对编程不熟悉,很多东西一头雾水。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

@jzp820927你是不是git push上去的?是的话把你那个PASS邮一份给我,谢谢
[email protected]

from gsnova.

jzp820927 avatar jzp820927 commented on July 27, 2024

我好久没弄了,是很早以前部署的,都是很老的版本了。
你把你的操作过程说说,我看看是哪儿出问题了。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

gsnova-paas-deploy-with-dependencies-v0.26.3.tar解压,同时安装好heroku工具,打开解压目录,在目录中运行CMD。

git init
git add .
git commit -m "my first commit"
git push -f heroku master
不成功

我估计这压缩文件不是git部署,但又搞不懂他是要怎样部署的。

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

装了 heroku 的工具,就要用它的部署,具体可以看看 heroku app 里的部署步骤,这个很好找
很久之前部署的,现在都忘了

找了找,就在部署页面,它需要你先用 heroku login 来登录帐号
具体步骤:比如你的 app 是 aabbbb

$ heroku login
$ heroku git:clone -a aabbbb
$ cd aabbbb
把压缩包解开,把文件复制到 aabbbb 文件夹,然后
$ git add .
$ git commit -am "make it better"
$ git push heroku master

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

Kisesy大好,我上面就是用工具部署的,前面建立应用之类的省略没说,其实也是做了,HEROKU的部署也看不少了,但最后都提示下面错误:
error: src refspec master does not match any.
error: failed to push some refs to 'heroku'
所以真搞不懂了。。。。

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

最后 push 的时候, 改成 git push -f 看行不行,命令我都忘光了....

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

$ heroku login
Enter your Heroku credentials.
Email: XXXXXXXXXXX
Password (typing will be hidden):
Logged in as [email protected]

$ heroku create herokuwss
Creating herokuwss... done
https://herokuwss.herokuapp.com/ | https://git.heroku.com/herokuwss.git

$ heroku git:clone -a herokuwss
Cloning into 'herokuwss'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.

$ cd herokuwss

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

$ git add .
warning: LF will be replaced by CRLF in .godir.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Godeps/Godeps.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Godeps/Readme.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Procfile.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in http.go.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in main.go.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in manifest.yml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in server.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vendor/github.com/codahale/chacha20/.gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vendor/github.com/codahale/chacha20/.travis.yml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vendor/github.com/codahale/chacha20/LICENSE.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vendor/github.com/codahale/chacha20/README.md.
The file will have its original line endings in your working directory.

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

$ git commit -am "make it better"

*** Please tell me who you are.

Run

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <(null)>) not allowed

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

$ git push -f heroku master
error: src refspec master does not match any.
error: failed to push some refs to 'https://git.heroku.com/herokuwss.git'

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

基本就这样了,最后无论上面命令怎么变,最后都 是这样:
$ git push -f heroku master
error: src refspec master does not match any.
error: failed to push some refs to 'https://git.heroku.com/herokuwss.git'

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

你可以搜索一下 src refspec master does not match any

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

按heroku上的说明,直接用他的命令好了,用
$ cd my-project/
$ git init
$ heroku git:remote -a herokuwss
代替
$ heroku git:clone -a herokuwss

但下面的 src refspec master does not match any好像还要看看,网上是有这情况,但试了一个也不行,还要多看看。

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

嗯,我刚才试了一下,新建了一个全新 app,很顺利没有什么问题....
也许你遇上特殊情况了,如果再遇到你这个问题,可以打开 .git 目录下的 config 文件,看看里面有没有
[remote "heroku"]

from gsnova.

jzp820927 avatar jzp820927 commented on July 27, 2024

刚刚上班,一直在忙,你先自己摸索一下,实在不行,我忙完了,帮你看看,估计要到下班去了。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "heroku"]
url = https://git.heroku.com/herokuwss.git
fetch = +refs/heads/:refs/remotes/heroku/
[branch "master"]
remote = heroku
merge = refs/heads/master

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

@jzp820927 谢谢,没事,你先忙,再说K大在指导我。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

网上看了下 src refspec master does not match any,好像很奇怪的说法,而且各人解决方法不一呀。
网上说的解决方法命令都不完全相同,好像各有各的解决方案一样,但目前对我没成功,
我重新再来一次再看看

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

这个是我的部署全日志 log.txt,你对比一下看看
怎么说呢,你这个问题其实很好解决,但是各自环境不同,我也不太好说
不行你可以发一下, git status 的状态

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

我刚删除了要重新来,等下我把 git status 的状态发上来。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

$ git status
On branch master

Initial commit

Changes to be committed:
(use "git rm --cached ..." to unstage)

    new file:   .godir
    new file:   Godeps/Godeps.json
    new file:   Godeps/Readme
    new file:   Procfile
    new file:   README
    new file:   http.go
    new file:   main.go
    new file:   manifest.yml
    new file:   server.json
    new file:   vendor/github.com/codahale/chacha20/.gitignore
    new file:   vendor/github.com/codahale/chacha20/.travis.yml
    new file:   vendor/github.com/codahale/chacha20/LICENSE
    new file:   vendor/github.com/codahale/chacha20/README.md
    new file:   vendor/github.com/codahale/chacha20/chacha20.go
    new file:   vendor/github.com/codahale/chacha20/core_ref.go
    new file:   vendor/github.com/getlantern/netx/LICENSE
    new file:   vendor/github.com/getlantern/netx/copy.go
    new file:   vendor/github.com/getlantern/netx/netx.go
    new file:   vendor/github.com/gorilla/websocket/.gitignore
    new file:   vendor/github.com/gorilla/websocket/.travis.yml
    new file:   vendor/github.com/gorilla/websocket/AUTHORS
    new file:   vendor/github.com/gorilla/websocket/LICENSE
    new file:   vendor/github.com/gorilla/websocket/README.md
    new file:   vendor/github.com/gorilla/websocket/client.go
    new file:   vendor/github.com/gorilla/websocket/compression.go
    new file:   vendor/github.com/gorilla/websocket/conn.go
    new file:   vendor/github.com/gorilla/websocket/conn_read.go
    new file:   vendor/github.com/gorilla/websocket/conn_read_legacy.go
    new file:   vendor/github.com/gorilla/websocket/doc.go
    new file:   vendor/github.com/gorilla/websocket/json.go
    new file:   vendor/github.com/gorilla/websocket/mask.go
    new file:   vendor/github.com/gorilla/websocket/server.go
    new file:   vendor/github.com/gorilla/websocket/util.go
    new file:   vendor/github.com/yinqiwen/gotoolkit/ots/ots.go
    new file:   vendor/github.com/yinqiwen/gsnova/LICENSE
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/auth.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/channel.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/event.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/event_ext.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/event_ext_appengine.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/factory.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/hb.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/http.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/notify.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/queue.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/tcp.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/types.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/event/udp.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/helper/bytes.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/helper/io.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/helper/net.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/helper/rand.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/helper/str.go
    new file:   vendor/github.com/yinqiwen/gsnova/common/logger/log.go
    new file:   vendor/github.com/yinqiwen/gsnova/remote/config.go
    new file:   vendor/github.com/yinqiwen/gsnova/remote/mq.go
    new file:   vendor/github.com/yinqiwen/gsnova/remote/proxy.go
    new file:   vendor/github.com/yinqiwen/gsnova/remote/version.go
    new file:   vendor/golang.org/x/crypto/LICENSE
    new file:   vendor/golang.org/x/crypto/PATENTS
    new file:   vendor/golang.org/x/crypto/salsa20/salsa/hsalsa20.go
    new file:   vendor/golang.org/x/crypto/salsa20/salsa/salsa2020_amd64.s
    new file:   vendor/golang.org/x/crypto/salsa20/salsa/salsa208.go
    new file:   vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.go
    new file:   vendor/golang.org/x/crypto/salsa20/salsa/salsa20_ref.go
    new file:   vendor/golang.org/x/crypto/salsa20/salsa20.go
    new file:   websocket.go

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

这环境的问题最是头痛,不行的话虚拟机上了,K大觉得可行不?环境肯定相当纯净.

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

我是在 Cloud9 上弄的,不是还有两种部署方式嘛

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

我刚才试了几次,网上对那错误的修正方式也不统一,说不清哪个对,试几次我这也没成功

我在虚拟机上试下看。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

哪两种部署方式?

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

github 和 dropbox,github 方式可以参考 https://github.com/Kisesy/Gogo, dropbox 就更简单了,只要把文件上传到 dropbox 上再部署就行,也是最简单的方式

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

额,看来我选了比较复杂的方式,看他是原装工具,以为更简单呢。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

不过github 方式不是整个gsnvoa部署了么?gsnvoa没有单独放出服务端,同GOGO还是有区别吧?能这样部署么?

from gsnova.

jzp820927 avatar jzp820927 commented on July 27, 2024

服务端在 paas 文件夹下面。不确定在子文件夹下面能用 github 方式部署。你试试就知道了。不过 dp 肯定没问题。

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

部署好了吗,git 方式还是不行? 我猜是 commit 失败导致文件夹为空,才出现这种情况,发一下 git config --list 的信息看看

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

总算好了,虚拟机上一次过,是环境的问题

在此谢谢两位大大热心帮忙。

from gsnova.

manandgod avatar manandgod commented on July 27, 2024

@Kisesy 看到你的帖子晚了,主机装太多东西,所以很混乱,刚才已经把原来工具文件都删除了,没办法发 git config --list 了,见谅。

from gsnova.

Kisesy avatar Kisesy commented on July 27, 2024

这无所谓,你弄好就行

from gsnova.

binyuj avatar binyuj commented on July 27, 2024

根据#issuecomment-270854927看,是你的git没有配置好,

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

需要配置好邮箱地址和用户名

from gsnova.

jzp820927 avatar jzp820927 commented on July 27, 2024

问题都已经解决,不用回复了

from gsnova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.