如果我只删除一个 rails 应用程序目录就可以了吗?它会在系统上留下任何痕迹吗?
Is it ok if I just delete a rails app directory? Will it leave any traces behind on the system?
我刚刚通过 运行ning
创建了一些示例应用程序
rails new
命令,然后在我完成工作后删除了我创建它们的目录。我是否必须 运行 一些其他命令来删除 rails 可能留下的所有痕迹?
除了本地文件,您可能已经创建了一个数据库并安装了一些gems .
要移除未使用的宝石,运行 gem cleanup
。
要清除数据库,请在项目文件夹中使用 rake db:drop
。
使用rails new
生成的文件是本地的,当您删除文件夹时将被完全删除。 运行 该命令会显示创建了哪些文件。
$ rails new commandsapp
create
create README.md
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
...
create tmp/cache
...
run bundle install
我刚刚通过 运行ning
创建了一些示例应用程序rails new
命令,然后在我完成工作后删除了我创建它们的目录。我是否必须 运行 一些其他命令来删除 rails 可能留下的所有痕迹?
除了本地文件,您可能已经创建了一个数据库并安装了一些gems .
要移除未使用的宝石,运行 gem cleanup
。
要清除数据库,请在项目文件夹中使用 rake db:drop
。
使用rails new
生成的文件是本地的,当您删除文件夹时将被完全删除。 运行 该命令会显示创建了哪些文件。
$ rails new commandsapp
create
create README.md
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
...
create tmp/cache
...
run bundle install