美文网首页
git push python 到 新浪云/SAE

git push python 到 新浪云/SAE

作者: 想溜了的蜗牛 | 来源:发表于2020-04-11 22:42 被阅读0次

【关键词】SAE python flask

【背景】做了个小工具,后台准备放在SAE服务器上。使用python做后台服务。新建好SAE应用后,就准备上传代码,构建服务了。但在上传代码时总是失败, 看下图

在新浪云上能查到 -----> Unable to select a buildpack 这个问题的官文解答, 参考里边 Python项目部署demoPython应用部署指南 这两个可以解决上边的问题。

因为一直是失败,担心哪有问题,于是全新操作一次。 

# 一、 复制一个新项目到本地

xx $ git clone https://git.sinacloud.com/test

# 二、将代码 上面demo 的代码 copy 到新项目 test 目录中

# 三、提交代码

xx $ git add .

xx $ git commit -m 'initial commit'

xx $ git push origin master

代码参考如下链接, 当个模板可以省些象我这样弱🐔的时间。

github 链接

有用的话还请各位点个赞,谢谢

相关文章

网友评论

      本文标题:git push python 到 新浪云/SAE

      本文链接:https://www.haomeiwen.com/subject/xssnuhtx.html