如何卸载 Ruby on Rails 应用程序?
我刚刚完成了 Apple 提供的 Rail 示例: http://developer.apple.com/Tools/developonrailsleopard.html
现在我'完成后,我想清理它并删除 Web 服务、数据库等。显然我仍然希望 RoR 堆栈就位。
如何?我可以使用耙子来做到这一点吗?
I've just worked through the Rail example supplied by Apple:
http://developer.apple.com/Tools/developonrailsleopard.html
Now that I'm done, I'd like to clean this up and remove the web service, database etc. Obviously I still want the RoR stack in place.
How? Can I do this using rake?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
删除即可;由您开始使用的rails命令创建的整个文件夹,在本例中是费用文件夹。这一切都是独立的。
Rails 命令创建框架的副本,因此仍然会安装它。
Just delete it; the whole folder that was created by the rails command you started with, in this case the expenses folder. It's all self-contained.
The rails command creates a copy of the framework, so it'll still be installed.
您需要删除相关数据库,然后删除应用程序目录
Rails 生成器命令创建框架的副本。应用程序目录 ID 自包含。删掉就够了。如果您使用
sqlite
作为数据库,那么您可以跳过第一个命令。You need to drop your related database and then delete the app directory
Rails generator command creates a copy of the framework. The app directory id self contained. Deleting it is enough. If you are using
sqlite
as your database then you can skip first command.为了安全起见,首先必须删除数据库中的表,最后删除应用程序的目录。
注意:在一些文档中(我不确定后果),我看到了另一个命令删除
rails db:drop
数据库。For the sake of safety, at first, it's essential to drop the tables in the database and finally deleting the app's directory.
Note: In some document (I am not sure about the consequences), I saw another command for dropping the database which is
rails db:drop
.