简体   繁体   English

当我运行Rails Server时,它会复制我的所有文件

[英]When I run rails server, it duplicates all my files

When I run "rails s" in duplicates all my files. 当我重复运行“ rails s”时,我的所有文件都会重复。 How do I run rails server? 如何运行Rails服务器? I created directory and decided to run rails server by running "rails s" but it just created the app files... which I already created with "rails new Raddit" Not sure what I did or what rails is doing since this is my first day at this 我创建了目录,并决定通过运行“ rails s”来运行Rails服务器,但是它只是创建了应用文件...我已经使用“ rails new Raddit”创建了它。我不确定我做了什么或正在做什么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

You did not set your rvm default,you need to run following commands. 您没有将rvm设置为默认值,需要运行以下命令。

source ~/.rvm/scripts/rvm . 源〜/ .rvm / scripts / rvm。

rvm use 2.1.3 --default rvm use 2.1.3-默认

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行Rails服务器时出现NameError - NameError when I run my rails server 我在localhost上运行服务器时出现问题(ruby on rails) - Problem when I run my server on localhost (ruby on rails) 在Rails中,运行bin / rspec时如何运行所有模型测试? - In rails, how do I run all my model tests when I run bin/rspec? 我的Rails项目中的所有Ruby文件是否都存储在指定的服务器上? (例如Puma,Webrick) - Are all my Ruby files in my Rails project stored on the server I specify? (eg. Puma, Webrick) 当我在Unicorn服务器上运行时,Websockets在我的Rails应用程序中不起作用,但在瘦服务器上运行 - Websockets not working in my Rails app when I run on Unicorn server, but works on a Thin server 手动运行服务器时,为什么不能连接到Heroku Rails应用程序? - Why can't I connect to my Heroku rails app when I run the server manually? 不确定为什么我不能运行Rails服务器 - Not sure why I can't run my rails server 我可以运行我的 rake 作业吗:在运行我的 rails 服务器时在同一个 docker 容器中工作? - Can I run my rake jobs:work in the same docker container as I run my rails server? 当我尝试在浏览器中运行 localhost:3000 时,Rails 服务器无法正常工作 - Rails server is not working when i try to run localhost:3000 in the browser 当我运行 rails server 时 Webpacker 不编译 - Webpacker doesn't compile when I run rails server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM