【问题标题】:Deploy PHP application into Flynn将 PHP 应用程序部署到 Flynn
【发布时间】:2020-11-02 05:57:04
【问题描述】:

我正在尝试在运行 Vagrant 的 Flynn 上安装 Craft CMS (https://github.com/craftcms/cms/tree/3.5)。

当我尝试通过 Flynn CLI 推送它时,它会引发错误:

PS D:\cms> git push flynn 3.5
Logon failed, use ctrl+c to cancel basic credential prompt.
Enumerating objects: 293867, done.
Counting objects: 100% (293867/293867), done.
Delta compression using up to 8 threads
Compressing objects: 100% (61947/61947), done.
Writing objects: 100% (293867/293867), 162.26 MiB | 3.23 MiB/s, done.
Total 293867 (delta 224740), reused 293867 (delta 224740), pack-reused 0
remote: The push must include a change to the master branch to be deployed.
To https://git.demo.localflynn.com/cms.git
 ! [remote rejected]       3.5 -> 3.5 (pre-receive hook declined)
error: failed to push some refs to 'https://git.demo.localflynn.com/cms.git'

如何将 Craft CMS 部署为 Flynn 上的应用程序?

【问题讨论】:

    标签: php composer-php craftcms flynn


    【解决方案1】:

    错误是:

    remote: The push must include a change to the master branch to be deployed.
    

    所以要解决这个问题,请将你的分支推送到远程的主分支:

    git push flynn 3.5:master
    

    【讨论】:

    猜你喜欢
    • 2014-04-25
    • 2012-07-16
    • 1970-01-01
    • 2022-01-16
    • 1970-01-01
    • 2017-01-24
    • 2012-01-24
    • 2011-06-28
    相关资源
    最近更新 更多