2011-03-18 74 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