我想知道什么时候我们运行rails新命令,rails生成命令。哪些文件是实际执行的。通常,对于其他工具,如rake、rspec(不确定它们是否称为命令行工具)或任何其他的创业板,这些文件首先执行(在开头)。谢谢。
发布于 2022-01-18 07:10:54
其中大部分位于https://github.com/rails/rails/tree/3be590edbedab8ddcacdf72790d50c3cf9354434/railties/lib/rails/commands文件夹中。
例如,这个https://github.com/rails/rails/blob/3be590edbedab8ddcacdf72790d50c3cf9354434/railties/lib/rails/commands/application/application_command.rb调用应用程序生成器https://github.com/rails/rails/blob/3be590edbedab8ddcacdf72790d50c3cf9354434/railties/lib/rails/generators/rails/app/app_generator.rb
https://stackoverflow.com/questions/70750415
复制相似问题