Why does my rails command always create a new application?

前端 未结 6 2065
执笔经年
执笔经年 2021-02-19 06:20

Forgive me as I\'m new to both *nix and ruby on rails. My rails command always creates a new application and I can\'t figure out why. Running \"rails new myApp\" will just gen

6条回答
  •  遇见更好的自我
    2021-02-19 07:10

    When you create your application with rails new myApp, there should be a myApp/script directory and in there will be a script named rails, this is the rails that understands server and console. So, do this:

    $ rails new MyApp
    $ cd MyApp
    $ script/rails server
    

    To create and start up your application. The naming is a little confusing.

提交回复
热议问题