问题标签 [taps]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
1954 浏览

postgresql - 当我尝试将我的 SQLite3 推送到 Cedar Stack 上的 Postgresql(通过 Taps)时,为什么会出现此错误?

我已经对 Heroku 开发中心进行了大量研究,现在我正在向社区寻求帮助。这是我的问题。我无法将我的数据库推送到 Heroku Cedar Stack。我正在尝试通过 Taps gem 将 sqlite 数据库迁移到 postgresql。当我准备好部署时,我运行:

我得到以下结果:

当我运行迁移时:

我得到以下信息:

每次我推送到 Heroku(git push heroku master)时它都会失败,因为我的 gem 文件正在尝试安装 sqlite3 gem——即使它在我的 Gemfile 中的开发和测试组内。即使成功运行以下命令,我的 database.yml 生产环境仍然指向 sqlite 适配器:

没有想法。请帮忙。如果它有用,我可以发布我的 gemfile、heroku ps 和日志的结果。

干杯

更新:遵循@John 的指示后,我现在收到以下终端消息。

以及以下警告:

["/app/.bundle/gems/ruby/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:249:in require'", "/app/.bundle/gems/ruby/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:249:inblock in tsk_require'", "/app/.bundle/gems/ ruby/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:72:in block in check_requiring_thread'", "<internal:prelude>:10:insynchronize'", "/app/.bundle/gems/ruby/1.9.1/gems/sequel-3.20. 0/lib/sequel/core.rb:69:in check_requiring_thread'", "/app/.bundle/gems/ruby/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:249:intsk_require'", "/app/.bundle/gems/ruby/1.9.1/gems/sequel-3.20.0/lib/sequel/database/connecting.rb: 25:in adapter_class'", "/app/.bundle/gems/ruby/1.9.1/gems/sequel-3.20.0/lib/sequel/database/connecting.rb:54:inconnect'", "/app/.bundle/gems/ruby/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:119:in connect'", "/app/lib/taps/db_session.rb:14:inconn'", "/app/lib /taps/server.rb:91:in block in <class:Server>'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:865:incall'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:865:in block in route'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:521:ininstance_eval'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:521:inroute_eval'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:500:in路线中的块(2级)!'”,“/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:497:catch'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:497:in路线中的块!'”, "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:476:in each'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:476:inroute!'", "/app/.bundle/gems/ruby/1.9. 1/gems/sinatra-1.0/lib/sinatra/base.rb:601:in dispatch!'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:411:inblock in call!'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra /base.rb:566:in instance_eval'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:566:inblock in invoke'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:566:in catch'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:566:ininvoke'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:411:in call!'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:399:incall'", "/app/.bundle/gems/ruby/1.9.1 /gems/rack-1.2.1/lib/rack/auth/basic.rb:25:in call'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:979:inblock in call'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:1005:insynchronize'", "/app/.bundle/gems/ruby/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:979:in调用'", "/home/heroku_rack/lib/static_assets.rb:9:in call'", "/home/heroku_rack/lib/last_access.rb:15:incall'", "/app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/ urlmap.rb:47:in block in call'", "/app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/urlmap.rb:41:ineach'", "/app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/urlmap.rb:41:in call'", "/home/heroku_rack/lib/date_header.rb:14:incall'", " /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:77:in call'", "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:76:inblock in pre_process'", "/app/.bundle/gems/ruby/ 1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:74:in catch'", "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:74:inpre_process'", "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/ lib/thin/connection.rb:57:in process'", "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:42:inreceive_data'", "/app/.bundle/gems/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine'", "/app/.bundle/gems/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun'" , "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/lib/thin/backends/base.rb:57:在start'", "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/lib/thin/server.rb:156:in开始'", "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/lib/thin/controllers/controller.rb:80:in start'", "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/lib/thin/runner.rb:177:inrun_command'", "/app/.bundle /gems/ruby/1.9.1/gems/thin-1.2.7/lib/thin/runner.rb:143:in run!'", "/app/.bundle/gems/ruby/1.9.1/gems/thin-1.2.7/bin/thin:6:in'", "/usr/ruby1.9.2/bin/thin:19:in load'", "/usr/ruby1.9.2/bin/thin:19:in'"]

0 投票
11 回答
6682 浏览

postgresql - 将数据推送到 Heroku 时出错:时区位移超出范围

我运行以下命令将本地数据库的内容推送到 Heroku:

在我的家用计算机上,这可以完美运行,但在我的工作计算机上,我收到此错误:

Taps服务器错误:PGError:错误:时区位移超出范围:“2011-11-15 12:00:00.000000+5894114400”

我不确定那个日期是从哪里来的,我在任何地方的数据中都找不到它。任何想法发生了什么和/或如何解决它?

0 投票
0 回答
465 浏览

ruby - 为什么我不能 db:push 到 Heroku?

更新 1:我发现我在这个类似的问题中提出了一些问题:heroku db:pull not working

虽然我认为我已经安装了pggem,但我想我没有。我在测试taps push命令时发现了这一点(我认为heroku db:push命令以某种方式别名)。在按照这些说明进行操作后,我已经安装、安装addressable并通过运行仔细检查了其他所有内容。这样做可以让我正确,但仍然无法正常工作。launchypggem install heroku taps sequeltaps pushdb:push

希望这有助于诊断正在发生的事情。


我正在Node.jsHeroku 平台上编写一个应用程序。

我最近从 to 切换MongoDBPostgreSQL,我准备好了git push heroku master。我在文档中读到我应该将db:push我的本地数据库与 Heroku 的内置数据库同步PostgreSQL。我经历了几个依赖项的安装。当我最终尝试推动时,我得到了:

Taps Load Error: no such file to load -- taps/operation

我不断收到这个错误,我需要安装或更新tapsgem。但我已经更新到0.3.23并且是最新的Heroku 2.14.0

知道这里发生了什么吗?

提出了问题并提交了支持票,但我目前在推动生产时被阻止并且可以使用一些帮助。另外,如果其他人遇到同样的问题,我希望它能够留给后代。

0 投票
3 回答
3879 浏览

ruby - heroku db:pull 不起作用?

我收到以下错误消息:

上面的命令不会在日志中产生任何可以使用“heroku 日志”查看的消息。

知道我做错了什么吗?

0 投票
1 回答
383 浏览

xcode - Cocos2d 中的 Tap 处理

我在 cocos2d 中开发一个游戏,其中两个人同时在不同的地方点击屏幕,每次点击算作不同的动作?

这是我当前的代码,它不允许同时计算两个水龙头:

0 投票
5 回答
3195 浏览

ruby-on-rails - 当我使用 PostgreSQL 作为开发数据库时,使用 heroku db:push 获取 SQLite 错误

我在将数据从我的开发数据库推送到 Heroku 时遇到问题。我决定切换到 PostgreSQL 作为我的开发数据库,​​并更新了 database.yml 并从 gemfiles 中删除了 sqlite gem。

该应用程序在 PostgreSQL 上运行良好,但是当我尝试运行命令时:

我得到一个令人费解的 SQLite 错误,因为我的项目中没有对 sqlite 的引用:

这是我的 database.yml 文件:

我正在使用 RVM,并且没有任何运气就创建了一个新的 gemset。

我什至试过这个,但得到了同样的 SQLite 错误:

我还运行了捆绑安装和捆绑更新。

约翰

0 投票
3 回答
277 浏览

mysql - 不使用 Taps 从 Heroku 提取数据的更快方法...第二部分

我一直在尝试使用这篇文章中描述的解决方案: Is there a faster way to pull production data from Heroku than Taps?

但是我在本地使用 Mysql,而不是 PostgreSQL。有没有办法使用该解决方案但仍使用 Mysql 进行开发?

谢谢你。

0 投票
1 回答
1261 浏览

ruby-on-rails - heroku db:push 不工作,使用水龙头 gem

gem 'sqlite3', '1.3.5'在开发和 gem 'pg', '0.12.2'产品上使用。红宝石版本ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

对于正在开发的教程应用程序。

我安装了tapsgem 并尝试了 heroku db:push就是我得到的。

这也是heroku日志。解决办法是什么?

仅供参考:db:pull 效果很好。我还检查了其他类似的帖子,但截至目前我在其中任何一个中都找不到解决方案

0 投票
2 回答
2709 浏览

heroku - heroku db:push 的“时区位移超出范围”,无法使用 ruby​​ 1.9.2 解决

这个问题已在其他地方提出,但似乎问题又回来了,以前的解决方案不再起作用。

异常输出类似于:

我在 ubuntu 12.04 上运行 postgresql 9.1,并使用 heroku cedar。

其他问题,例如将数据推送到 Heroku 时出错:时区位移超出范围表明使​​用 rvm 切换到 1.9.2-p290 将匹配在 heroku 上运行的版本,避免该问题对我不起作用。

清空表中的值允许我推送数据,但我正在寻找的不仅仅是一次性解决方法。

pgbackups似乎可以工作,但我宁愿不设置另一个完整的过程来使用 db:push 解决方法。

有什么建议么?这实际上是水龙头问题吗?这里的人似乎有不同的结果:https ://github.com/ricardochimal/taps/issues/92

0 投票
1 回答
222 浏览

ruby-on-rails - Taps gem 很慢

我目前正在使用 Taps 从 Heroku 将一个 postgree 数据库导入我的机器。

数据库大约 5MB,有大约 20k 个对象。

到目前为止,大约需要 15 分钟。

知道为什么要花这么长时间,有什么办法可以加快速度吗?我无法想象当数据库增长 100 万个对象并且我需要做一些移动时以这种方式工作。

(那是一张只有 14k 个对象的表)