Ruby on rails Heroku帮助rails迁移错误
我试着用git在heroku上部署。Git控制台:Ruby on rails Heroku帮助rails迁移错误,ruby-on-rails,ruby-on-rails-3,heroku,Ruby On Rails,Ruby On Rails 3,Heroku,我试着用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.
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首先,您的finder中有一个语法错误
Reklamer.where(dato: '@stats[0]')
应该是
Reklamer.where(dato => @stats[0])
其次,heroku db:push失败,因为您尚未安装taps gem
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.
要执行此操作,请执行以下操作:
gem install taps
首先,查找器中有一个语法错误
Reklamer.where(dato: '@stats[0]')
应该是
Reklamer.where(dato => @stats[0])
其次,heroku db:push失败,因为您尚未安装taps gem
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.
要执行此操作,请执行以下操作:
gem install taps
安装水龙头并没有为我解决问题,但这确实解决了:
sudo gem upgrade heroku
安装水龙头并没有为我解决问题,但这确实解决了:
sudo gem upgrade heroku