Heroku的麻烦 - 卸载/重新安装heroku toolbelt Ubuntu的 [英] Heroku trouble - uninstall/reinstall heroku toolbelt ubuntu
问题描述
我在Amazon Web Services上运行一个Ubuntu实例来开发Ruby on Rails应用程序(用于测试运行本地Rails服务器)并将应用程序推送到Heroku进行部署。
直到昨天,当我想将我的开发数据库的内容推到生产环境而不仅仅是应用程序本身时,此设置对我而言毫无问题。经过一些快速搜索,这似乎很容易通过使用 经过一些Google搜索之后,我来到了针对两年前在Heroku的github页面上发布的一个问题,该问题直到最近3个月前,人们都在处理这个问题,因此在阅读了几封推荐信之后,我决定尝试使用直接安装(尽管它已被弃用,完全被Toolbelt取代),因为人们看起来似乎获得了正确的结果。 我很犹豫,因为我没有'我想要让toolbelt和独立的宝石彼此竞争,所以我搜索了如何卸载heroku toolbelt(似乎没有一个好的heroku提供的解决方案 - 可以在heroku上打开一张票......)但我遵循这个 li因为它只是下面的命令: 不考虑依赖关系等等......我认为这是部分的(如果不是完全的话)我的问题的根源。此时,我运行命令 因此,我决定尝试回到开头并且不用担心事情,所以我卸载了一个简单的 在屏幕上打印了一堆积极向上的输出结果后,我认为所有事情都会发生确定,但安装过程的最后一条消息是: 这就是我所在的位置,我通过遵循链接(请再次打我),现在安装了toolbelt没有注意到他们错过了,我没有heroku或水龙头卡住! (另外,令人不安的是,heroku并没有提供一个简洁的方式来卸载工具栏 - 这会让事情变得像这样简单) 帮助是非常感谢。 呃 - 想通了。检查下载的shell脚本后,我看到它运行命令 所以我最终不得不使用apt-get来移除heroku和heroku-toolbelt包, / p> 然后用 现在一切看起来都很好。 I'm running an Ubuntu instance on Amazon Web Services for development of a Ruby on Rails app (which is being used to test running the local rails server) and am pushing the app to Heroku for deployment. This setup has worked for me without issues until yesterday when I wanted to push the contents of my development database to production rather than just the app itself. After some quick googling, this seemed to be easily accomplished by using Easy enough, right? Wrong. After running After some more googling, I came upon an issue that was opened over two years ago on Heroku's github page that has received posts up until as recent as 3 months ago with people dealing with this issue, so after reading through a few testimonials I decided to try and go with the direct install of the heroku gem (even though it is being deprecated to be replaced entirely by the Toolbelt) as people were seemingly getting the right results. I was hesitant because I didn't want to have the toolbelt and the standalone gem competing with one another, so I googled how to uninstall the heroku toolbelt (which doesn't seem to have a good heroku-provided solution - may open a ticket on heroku...), but I followed the directions on this link, which someone should smack me for because it was just the following commands: And these commands don't consider dependencies, etc... I think that is partially (if not completely) the root of my problem. At this point, I ran the command So, I decided I'd just try and go back to the beginning and not worry about things, so I uninstalled the heroku gem which was a simple After a bunch of positive-looking output was printed to the screen, I figured everything was going to be OK, but the last messages of the install process were: And this is where I am, I've removed the obviously-important contents by following the link (smack me again, please), and now installation of the toolbelt doesn't notice that they're missing and I'm stuck without heroku or taps! (Also, it's upsetting that heroku doesn't provide a clean way to uninstall the toolbelt - this would've made going about something like this much less complicated) Help is greatly appreciated. Ugh - figured it out. After inspecting the shell script that is downloaded, I saw that it ends up running the command So I ended up having to remove the heroku and heroku-toolbelt packages with apt-get by running And then reinstalling the toolbelt with And now everything seems to be playing nice again. 这篇关于Heroku的麻烦 - 卸载/重新安装heroku toolbelt Ubuntu的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! Taps
来完成。我不确定是否预先加载了Heroku Toolbelt(这是我一直在使用的),所以在遵循Heroku的文档之后,我只运行了命令 rake db:push
- 这会返回错误:
$ $ $ $ $ $ $ $ $ $ $ $ $> $ T $加载错误:无法加载这样的文件 - tap / operation
您可能需要安装或更新轻敲宝石才能使用db命令。
在大多数系统上,这将是:
sudo gem install taps
<很容易,对吧?错误。在运行 sudo gem install taps
(并且安装运行没有任何问题)后,我重新执行命令 rake db:push
只是为了找到自己面临相同的点击加载错误
。考虑到Heroku服务之前的运行方式有多简单,这让人感到有点意外,因为事情并没有在第一步就顺利进行。
rm -rf / usr / local / heroku
rm -rf / usr / bin / heroku
sudo gem install heroku
,得到了弃用警告,然后试着运行命令 heroku login
作为试金石来检查它是否已正确安装,但我收到了一个令人讨厌的 Gem:LoadError
,表示
在[...一堆宝石中]找不到heroku(> = 0)...]
sudo gem uninstall heroku
,删除相关的可执行文件,然后尝试按照Heroku上列出的命令重新安装Toolbelt:
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
heroku-toolbelt已经是最新版本了。已升级
0,新安装0个,删除0个,未升级102个。
sudo apt-get install heroku-toolbelt
sudo apt-get --purge remove heroku
sudo apt-get --purge remove heroku-toolbelt
重新安装工具栏,
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
Taps
. I wasn't sure whether or not taps was preloaded with the Heroku Toolbelt (which is what I had been using), so after following the documentation on Heroku, I just ran the command rake db:push
- this returned the error:Taps Load Error: cannot load such file -- taps/operation
You may need to install or update the taps gem to use db commands.
On most systems this will be:
sudo gem install taps
sudo gem install taps
(and watching the installation run without any issue), I reran the command rake db:push
just to find myself facing the same Taps Load Error
. Considering how easily Heroku services had run before, this was a bit of a surprise that things didn't go swimmingly at the first shot.rm -rf /usr/local/heroku
rm -rf /usr/bin/heroku
sudo gem install heroku
, got the deprecation warning, and then simply tried to run the command heroku login
as a litmus test to see if it had been installed correctly, but I received a beastly Gem:LoadError
that said Could not find heroku (>= 0) amongst [... a bunch of gems ...]
sudo gem uninstall heroku
, removed the associated executables, and then tried to reinstall the Toolbelt by following the command listed on Heroku:wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
heroku-toolbelt is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.
sudo apt-get install heroku-toolbelt
sudo apt-get --purge remove heroku
sudo apt-get --purge remove heroku-toolbelt
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh