如何使用来自github的应用程序

时间:2011-11-03 19:56:36

标签: ruby-on-rails ruby ruby-on-rails-3 rubygems

我想从github使用app,我克隆了它, 但是当我尝试bundle install时,它需要一个gem文件。 我从其他本地应用程序复制了我的gem文件,'bundle install'是成功的,但当我尝试'rake db:migrate'时,我看到了:

    rusik@rusik-K50AF:~/work/ruby/episode-119/blog$ rake db:migrate
rake aborted!
no such file to load -- initializer

(See full trace by running task with --trace)
rusik@rusik-K50AF:~/work/ruby/episode-119/blog$ rake db:migrate --trace
rake aborted!
no such file to load -- initializer
/home/rusik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
/home/rusik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
/home/rusik/work/ruby/episode-119/blog/config/boot.rb:54:in `load_initializer'
/home/rusik/work/ruby/episode-119/blog/config/boot.rb:38:in `run'
/home/rusik/work/ruby/episode-119/blog/config/boot.rb:11:in `boot!'
/home/rusik/work/ruby/episode-119/blog/config/boot.rb:109:in `<top (required)>'
/home/rusik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/rusik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/rusik/work/ruby/episode-119/blog/Rakefile:4:in `<top (required)>'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/    home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load'
/home/rusik/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `<main>'

, 我试图从我的LOCAL应用程序复制我的db test.sqlite3,但它不起作用,同样的问题。

所以,'当然,我试过rails server,但它不起作用。

那么,如何从github设置应用程序?

1 个答案:

答案 0 :(得分:0)

这是rails 2 app,所以根本没有捆绑器。如果你想运行它,你应该阅读README:

  

要设置应用,只需运行rake setup