2011-03-18 3 views
0

나는 heroku에서 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. 

내 응용 프로그램 모두의

답변

2

처음에 MySQL을 사용하고 당신은 당신의 파인더에 구문 오류가 있습니다.

gem install taps 
2

설치 :

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. 

이 실행을 할 수있는 탭 보석을 설치하지 않은으로

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

은 둘째 heroku db:push가 실패해야한다 도청은하지 않았다. 그것을 위해 그것을 ix. 그러나 이것은했다 :

sudo gem upgrade heroku 
관련 문제