python - 错误:在 heroku 上部署应用程序时,src refspec master 不匹配任何内容
问题描述
以下是我解决此问题的方法:
- 先在 Heroku 上做了一个应用,准备好 local_folder 中的所有代码推送进去。
- 使用克隆远程应用程序
heroku git:clone -a app_name
- 然后
cd app_name
- 然后将所有代码从 local_folder 复制到此文件夹中
- 然后
git add .
- 然后
git commit -am "initial commit"
- 然后
git push heroku master
有没有正式的解决方案来解决这个问题?
解决方案
推荐阅读
- angular - 如何获得导航参数的值?
- javascript - 将参数 PHP 传递给 JavaScript 会导致“意外令牌错误”
- ios - 如何解决 Xcode 的“此时无法安装此应用程序”。错误
- string - 版本和 pkgname 提取
- macos - Brew 公式:如何定义外部依赖项?
- javascript - 使用javascript中的child_add从firebase实时数据库中提取数据的问题
- elasticsearch - 按其他字段上的最佳匹配对结果进行排序
- javascript - 手风琴内的全日历
- java - 在 Windows 上将 Firebase 添加到 JavaFX
- excel - 2 个标准的总和