当我尝试使用 rake db:migrate:up VERSION=20121217051908 命令迁移单个文件时,会显示命令错误。'rake' 不是内部或外部命令、可运行程序或批处理文件。
然后我尝试使用 bundle exec rake db:migrate:up VERSION=20121217051908 再次显示错误。
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [
args] => [deps]' instead.
at D:/ROR/appmallserver/lib/tasks/download_apk.rake:5:in `block in <top (req
uired)>'
rake aborted!
D:/ROR/appmallserver/lib/tasks/handster.rake:69: invalid multibyte char (US-ASCI
I)
D:/ROR/appmallserver/lib/tasks/handster.rake:69: invalid multibyte char (US-ASCI
I)
D:/ROR/appmallserver/lib/tasks/handster.rake:69: syntax error, unexpected $end,
expecting keyword_then or ';' or '\n'
unless node.text == "Next ??"
^
(通过使用 --trace 运行任务查看完整跟踪)