git push和部署golang应用程序到App Engine

huangapple go评论63阅读模式
英文:

git push and deploy for golang appengine

问题

appcfg.py --oauth2 update ./ 可以工作,但我想用 git push 和 deploy 来替代它。在成功推送后,appengine 给我报错说我的 .go 文件没有编译。

在使用 git 仓库时,appengine 是否可以编译这些文件?如果不行,我需要将编译后的文件放在另一个目录中吗?

英文:

appcfg.py --oauth2 update ./ works but want to replace it with git push and deploy. After succesfull push, appengine gives me errors that my .go files are not compiled.

Is it possible for appengine to compile the files when using a git repo? If not do I need to place the compiled files in another directory?

答案1

得分: 1

这是一个已知问题。请给它点赞。

目前,你只能继续使用appcfg.py。如果每次进行OAuth授权都很麻烦(或者你有多个账户),可以考虑存储你的刷新令牌,然后执行以下操作:

appcfg.py update . --oauth2 --oauth2_refresh_token=`cat .token`
英文:

This is a known issue. Please star it.

For now, all you can do is keep using appcfg.py. If it is cumbersome to do the OAuth authorisation all the time (or you have multiple accounts), consider storing your refresh token and then doing:

appcfg.py update . --oauth2 --oauth2_refresh_token=`cat .token`

huangapple
  • 本文由 发表于 2013年12月4日 12:10:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/20366672.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定