Why does my rails command always create a new application?

前端 未结 6 1966
执笔经年
执笔经年 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:20

    The common way to create a Rails application is:

    rails new MyApp

    This will create a folder with your new Rails application called MyApp

    If your folder name is the same name you plan to use for your application you can use the command below:

    rails new .

    Notice the period at the end telling it to use the current directory.

    If you want to supply a specific application name, you’ll have to do the following:

    rails new /path/to/folder/you/want/to/use

提交回复
热议问题