2014-11-25 43 views
0

當我在所有文件中重複運行「rails s」時。我如何運行rails server?我創建了目錄,並決定通過運行「rails s」來運行rails服務器,但它只是創建了應用程序文件......我已經使用「rails new Raddit」創建了它。不知道我做了什麼或者rails在做什麼,因爲這是我的第一個在這一天當我運行rails服務器時,它將所有文件都重複使用

create app/controllers 
    create app/helpers 
    create app/models 
    create app/views/layouts 
    create config/environments 
    create config/initializers 
    create config/locales 
    create db 
    create doc 
    create lib 
    create lib/tasks 
    create log 
    create public/images 
    create public/javascripts 
    create public/stylesheets 
    create script/performance 
    create test/fixtures 
    create test/functional 
    create test/integration 
    create test/performance 
    create test/unit 
    create vendor 
    create vendor/plugins 
    create tmp/sessions 
    create tmp/sockets 
    create tmp/cache 
    create tmp/pids 
    create Rakefile 
    create README 
    create app/controllers/application_controller.rb 
    create app/helpers/application_helper.rb 
    create config/database.yml 
    create config/routes.rb 
    create config/locales/en.yml 
    create db/seeds.rb 
    create config/initializers/backtrace_silencers.rb 
    create config/initializers/inflections.rb 
    create config/initializers/mime_types.rb 
    create config/initializers/new_rails_defaults.rb 
    create config/initializers/session_store.rb 
    create config/initializers/cookie_verification_secret.rb 
    create config/environment.rb 
    create config/boot.rb 
    create config/environments/production.rb 
    create config/environments/development.rb 
    create config/environments/test.rb 
    create script/about 
    create script/console 
    create script/dbconsole 
    create script/destroy 
    create script/generate 
    create script/runner 
    create script/server 
    create script/plugin 
    create script/performance/benchmarker 
    create script/performance/profiler 
    create test/test_helper.rb 
    create test/performance/browsing_test.rb 
    create public/404.html 
    create public/422.html 
    create public/500.html 
    create public/index.html 
    create public/favicon.ico 
    create public/robots.txt 
    create public/images/rails.png 
    create public/javascripts/prototype.js 
    create public/javascripts/effects.js 
    create public/javascripts/dragdrop.js 
    create public/javascripts/controls.js 
    create public/javascripts/application.js 
    create doc/README_FOR_APP 
    create log/server.log 
    create log/production.log 
    create log/development.log 
    create log/test.log 
    create vendor/rails 
+3

您可能在'rails 2'中給出了一個'rails 3'命令。 – Pavan 2014-11-25 08:17:12

+0

當我檢查 – JamesRocky 2014-11-25 08:21:36

+0

時,我安裝了rails 2.3.14然後它不是在'rails 2.3.14'中運行服務器的命令。給''ruby腳本/服務器'。 – Pavan 2014-11-25 08:22:53

回答

-2

您沒有設置您的rvm默認值,您需要運行以下命令。

source〜/ .rvm/scripts/rvm。

rvm使用2.1.3 - 默認

+0

這是如何回答問題的? – 2014-11-25 11:40:10

+0

這與問題完全沒有關係...... – 2014-11-25 11:40:11

相關問題