我得到了如何将应用程序部署到Git和Heroku的说明,但因为我对Git不是很熟悉(我只知道“基础”),所以我想请你帮个小忙。我已经从Heroku下载了应用程序。下面是我应该做的:
Create separate git branches for new updates, push the branch to Github, create pull requests and merge them into master.
Then pull the master branch locally and deploy to Heroku.
正确的工作流程应该是什么?经过研究后:
git branc
我有一个关于Heroku的项目,我对这个项目做了一些修改,当我写到"git push heroku master“时,我得到了一个错误。
To https://git.heroku.com/webookapp.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://git.heroku.com/webookapp.git'
hint: Updates were rejected because the remote con
我已经跟踪了这里的所有问题,但仍然有一个错误推到Heroku。
以下是我迄今所做的工作:
将sqlite3从git文件、包、git提交和git推到Heroku中完全删除。
将sqlite3分组:开发、测试do、包、git提交和git推到Heroku。
卸载并重新安装sqlite3 gem、bundle、git和git到Heroku。
删除Gemlock文件、包、git提交和git推到Heroku。
创业板档案:
group :development, :test do
gem 'sqlite3'
end
group :production do
我引用了下面这个令人敬畏的线程来叉我的Heroku应用程序,并克隆了github,使其有两个独立的github和Heroku应用程序,用于生产和开发。
$ git clone git@heroku.com:oldapp.git -o old newclonedapp
$ cd newclonedapp
$ heroku git:remote -a newclonedapp
$ git push heroku master
然后,我手动将文件夹newcloneapp移动到它自己的目录中。无论如何,我仍然会遇到以下错误:
! Multiple apps in folder and no
我已经完成了一个在Node.js上的项目,这个项目已经推入GitHub,这个项目有一个大于100MB的视频,这需要Git LFS。Git LFS成功地推送到GitHub中,没有任何问题。
这个项目的第二阶段是在Heroku托管,这就是我被卡住的地方。我都试过了:
heroku buildpacks:add https://github.com/BureauxLocaux/heroku-buildpack-git-lfs.git
和
heroku buildpacks:add (name of the app given by heroku)/heroku-buildpack-git-lfs
当
我正在尝试为我的应用程序创建一个演示分支,在那里供应商可以登录以了解更多关于它的功能。
我有一个在Heroku上部署到生产环境的主分支。此外,我有一个部署到我的Heroku登台环境的登台分支。在Github App中,我在staging分支的基础上创建了一个分支,名为“demo”。
当我使用CircleCI部署时,我收到以下错误:
unable to push to unqualified destination: master
The destination refspec neither matches an existing ref on the remote nor
begins wi