2011-03-18 73 views
0

我试图在heroku上部署git。 Git的控制台:Heroku帮助栏移植错误

[email protected] /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) 

    [email protected] /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在我的应用程序

回答

2

首先,你必须在你的取景器中有语法错误。

Reklamer.where(dato: '@stats[0]') 

应该

Reklamer.where(dato => @stats[0]) 

其次,你还没有安装水龙头宝石又

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. 

为此运行heroku db:push失败:

gem install taps 
2

安装水龙头没有f ix它对我来说,但这确实:

sudo gem upgrade heroku