Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3.1 使用Git标签在Heroku上进行热修复_Ruby On Rails 3.1_Heroku_Git Branch_Git Tag - Fatal编程技术网

Ruby on rails 3.1 使用Git标签在Heroku上进行热修复

Ruby on rails 3.1 使用Git标签在Heroku上进行热修复,ruby-on-rails-3.1,heroku,git-branch,git-tag,Ruby On Rails 3.1,Heroku,Git Branch,Git Tag,希望有人能给我指出正确的方向。我想更好地了解我的应用程序是如何将标记部署到Heroku的,以及如何利用标记/分支的组合对生产进行热修复。我有一个在Heroku上运行的rails 3.1应用程序 这是用于演示的自定义部署rake任务的一些输出 git push origin tag deploy.120716134715 Total 0 (delta 0), reused 0 (delta 0) To git@github.com:myusername/myrepository.git * [n

希望有人能给我指出正确的方向。我想更好地了解我的应用程序是如何将标记部署到Heroku的,以及如何利用标记/分支的组合对生产进行热修复。我有一个在Heroku上运行的rails 3.1应用程序

这是用于演示的自定义部署rake任务的一些输出

git push origin tag deploy.120716134715
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:myusername/myrepository.git
 * [new tag]         deploy.120716134715 -> deploy.120716134715

deploy tag deploy.120716134715 was created
git push demo deploy.120716134715:master --force
Everything up-to-date

git tag demo.120716134726 deploy.120716134715

git push origin tag demo.120716134726
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:myusername/myrepository.git
 * [new tag]         demo.120716134726 -> demo.120716134726
因此,我正在创建一个部署标记,并将其推送到我的heroku演示应用程序,然后从部署标记创建一个演示标记

我的生产任务输出类似:

Push deploy.120716132600 to Production?  Type 'y' to deploy
y
deploying
git push production deploy.120716132600:master --force
Counting objects: 19, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (15/15), 1.42 KiB, done.
Total 15 (delta 12), reused 0 (delta 0)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Configure Rails 3 to disable x-sendfile
       Installing rails3_disable_x_sendfile... done
-----> Configure Rails to log to stdout
       Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
       All dependencies are satisfied
-----> Installing Exceptional plugin from git://github.com/exceptional/exceptional.git... done.
-----> Installing quick_sendgrid plugin from git://github.com/pedro/quick_sendgrid.git... done.
-----> Configuring New Relic plugin... done.
       Installing the New Relic plugin... done.
-----> Compiled slug size is 29.2MB
-----> Launching... done, v291
-----> Deploy hooks scheduled, check output in your logs
       http://my-app-production.heroku.com deployed to Heroku

To git@heroku.com:my-app-production.git
   9d0f2ca..9827475  deploy.120716132600 -> master

git push origin refs/tags/deploy.120716132600:refs/tags/production.120716133802
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:myusername/myrepository.git
 * [new tag]         deploy.120716132600 -> production.120716133802
因此,部署标签被推送到我的Heroku生产应用程序,然后创建一个生产标签并推送到源站

所以我的问题是,现在对生产进行热修复的最佳方法是什么?假设我在我的主分支中进行了更改,我已经在本地提交了更改,然后推动了更改。在不推动我对生产所做的新更改的情况下,采取什么样的最佳方法来获取生产上的内容—在本地将其拆下、修改、提交并重新投入生产

这可能吗

提前感谢大家的帮助,并让我知道我还需要提供哪些其他信息。就像我说的rails 3.1应用程序,Heroku上的一个演示和一个生产应用程序

在不推动我对生产所做的新更改的情况下,采用什么样的最佳方法将生产中的内容从本地拉下来、修改、提交并重新投入生产

将生产中的内容拉入一个新分支,修改它,提交,然后将该分支推上。有关信息,请参见此处: