heroku/部署/flask/ 部署玩了后,run时出现问题。好像是git分支的原因
raise util.CommandError('Only a single head is supported. The '
alembic.util.CommandError: Only a single head is supported. The script directory has multiple heads (due to branching), which must be resolved by manually editing the revision files to form a linear sequence. Run alembic branches to see the divergence(s).
flask博客部署到heroku时,在pus到heroku后运行时报错。貌似是git 分支的问题?不知道怎么解决。
我找到了一段解决方法: this happens when you go back to a revision that is not the last and then create a new migration. Now you have two branches, which Alembic cannot handle. Look at how the migration files are chained together through migration ids, you need to create a linear chain to collapse the branches.
看的不太懂。不知道how?
十分感谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论