Heroku帮助rails迁移错误
我尝试过用git在heroku上部署。 Git 控制台:
Home@PC /c/rails/konkurranceportalen (master)
$ heroku rake db:migrate
rake aborted!
/app/x/home/lib/tasks/statistik.rake:19: synt
ax error, unexpected ':', expecting ')'
@existing = Reklamer.where(dato: '@stats[0]').first
^
/app/x/home/lib/tasks/statistik.rake:19: synt
ax error, unexpected ')', expecting kEND
@existing = Reklamer.where(dato: '@stats[0]').first
^
/app/x/home/Rakefile:7
(See full trace by running task with --trace)
(in /app/x/home)
Home@PC /c/rails/konkurranceportalen (master)
$ heroku db:push
Taps Load Error: no such file to load -- sqlite3/sqlite3_native
You may need to install or update the taps gem to use db commands.
我在我的应用程序中使用 mysql
I have tried to deploy on heroku with git. Git console:
Home@PC /c/rails/konkurranceportalen (master)
$ heroku rake db:migrate
rake aborted!
/app/x/home/lib/tasks/statistik.rake:19: synt
ax error, unexpected ':', expecting ')'
@existing = Reklamer.where(dato: '@stats[0]').first
^
/app/x/home/lib/tasks/statistik.rake:19: synt
ax error, unexpected ')', expecting kEND
@existing = Reklamer.where(dato: '@stats[0]').first
^
/app/x/home/Rakefile:7
(See full trace by running task with --trace)
(in /app/x/home)
Home@PC /c/rails/konkurranceportalen (master)
$ heroku db:push
Taps Load Error: no such file to load -- sqlite3/sqlite3_native
You may need to install or update the taps gem to use db commands.
I am using mysql in my app
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您的查找器中存在语法错误。
其次应该是
heroku db:push
失败,因为您还没有安装 taps gem要执行此操作:
First of all you have a syntax error in your finder.
should be
Secondly
heroku db:push
is failing as you haven't installed the taps gem yetTo do this run:
安装水龙头并没有解决我的问题,但这确实解决了这个问题:
Installing taps did not fix it for me, but this did: