不知道如何在Ubuntu natty上构建rake db:migrate? [英] Don't know how to build rake db:migrate on Ubuntu natty?
问题描述
我不确定如何使用Capistrano部署应用程序,但是我认为我至少会尝试将所有需要的文件加载到部署服务器上,因此我在Github上进行了git pull并使用安装了所有依赖项捆绑安装。我有在Rails 3.0.9的Ruby 1.9.2p180中运行的RVM 1.6.32,当我运行rake db:migrate时,我得到
I'm not sure how to deploy an application using Capistrano but I figured I'd try to at least load all the files I need on my deployment server, so I did a git pull on Github and installed all the dependencies using bundle install. I have RVM 1.6.32 running in Ruby 1.9.2p180 with Rails 3.0.9 and when I run rake db:migrate, I get
rake流产了!
不知道如何构建任务'db:migrate'
我没有双分号问题其他SO用户已经提到的,所以我真的很困惑。我已经安装了0.9.2和0.8.7以及捆绑程序1.0.17。我的rvm实例显示
rake(0.8.7 ruby)
I don't have the double semi-colon issue that other SO users have mentioned, so I'm genuinely confused. I have rake both 0.9.2 and 0.8.7 installed, as well as bundler 1.0.17. My rvm instance shows
rake (0.8.7 ruby)
出了什么问题?
-编辑-
rake --tasks的输出
The output of rake --tasks
rake sunspot:reindex[batch_size,models] # Reindex all solr models that are...
rake sunspot:solr:run # Run the Solr instance in the for...
rake sunspot:solr:start # Start the Solr instance
rake sunspot:solr:stop # Stop the Solr instance
宝石列表的输出是
gem list
*** LOCAL GEMS ***
aaronh-chronic (0.3.9)
abstract (1.0.0)
actionmailer (3.0.9)
actionpack (3.0.9)
activemodel (3.0.9)
activerecord (3.0.9)
activeresource (3.0.9)
activesupport (3.0.9)
arel (2.0.10)
authlogic (3.0.3)
builder (2.1.2)
bundler (1.0.17)
capistrano (2.8.0)
classifier (1.3.3)
daemons (1.1.4)
delayed_job (2.1.4)
docsplit (0.5.2)
erubis (2.6.6)
escape (0.0.4)
fast-stemmer (1.0.0)
gsl (1.14.7)
haml (3.1.2)
highline (1.6.2)
i18n (0.5.0)
lda-ruby (0.3.7)
madeleine (0.7.3)
mail (2.2.19)
mime-types (1.16)
minitest (1.6.0)
mysql (2.8.1)
narray (0.5.9.9)
net-ldap (0.2.2)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
nokogiri (1.5.0)
polyglot (0.3.1)
pr_geohash (1.0.0)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9)
rails3-generators (0.17.4)
railties (3.0.9)
rake (0.9.2, 0.8.7)
rdoc (3.6.1, 2.5.8)
rsolr (0.12.1)
shoulda (2.11.3)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.28)
whenever (0.6.8)
will_paginate (3.0.pre4)
应用程序的输出。 rb是
The output of application.rb is
require File.expand_path('../boot', __FILE__)
require 'rails/all'
require 'net/http'
require 'net/ldap'
推荐答案
检查是否需要
文件。看起来 sunspot
更改了您的配置。
check if require 'rails/all'
presents in your config/application.rb
file. Looks like sunspot
have changed your configs.
您还可以尝试先更新捆绑器宝石更新捆绑器
also you can try to update your bundler first gem update bundler
这篇关于不知道如何在Ubuntu natty上构建rake db:migrate?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!