使用 Drush 的安全性如何?
由于这是 beta-1 版本,有什么我应该特别担心的吗?
Since this is a beta-1 release, Is there anything which I should especially be worried about?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我已经使用它很长时间了,并且知道其他几个人也这样做过,没有任何问题。所以如果我是你我就不会担心。但我还没有测试所有的东西,比如 SQL 查询和其他可以用 drush 做的数据库东西。但它对于下载模块、禁用/启用模块、清除缓存和其他类似的东西非常有用,这些都是您在开发时经常要做的事情。
I've used it for a long time and know several others that have done so without any problems. So I wouldn't be worried if I were you. But I haven't tested all the stuff like SQL queries and other db stuff you can do with drush. But it's really good for downloading modules, disabling/enabling modules, clearing cache and other stuff like that, that you tend to do a lot when developing.
德鲁什太棒了。它很好地完成了它的工作。唯一需要警惕的是:
你自己?
维护者没有发现的错误
抓住。
但 Drush 确实提供了 contrib 模块的备份到 /backups。
Drush is awesome. It does it's job well. The only thing to be wary of are things like:
yourself?
bug(s) the maintainer did not
catch.
But Drush does provide a backup of contrib modules to /backups.
在安装/卸载模块或主题时,Drush 非常安全(通常它也会进行备份),但在更新核心以备份整个网站时请记住。我有一些网站是我维护的,不是由我构建的,如果我运行:
我会得到奇怪的行为,例如:主题被删除(这就是它的构建方式,我发现从根/主题移动主题/themename 到 root/sites/all/themes/custom/themename 修复问题),或者整个网站停止工作(构建包含双代码模块文件夹,例如:root/modules 和 root/modules/modules)。因此,一般来说,如果您的网站是按照最佳实践构建的,那么 drush 就很棒,否则您可能会遇到麻烦。
Drush is pretty safe when it comes to install/uninstall modules or themes (usually it also makes back-ups) but KEEP in mind when you update the core to back-up your entire web site. I have some web sites that I do maintenance and are not build by me that if I run:
I get weird behavior like: a theme gets deleted (that was the way it was built, I found out that moving the theme from root/themes/themename to root/sites/all/themes/custom/themename fix the problem), or the whole website just stops working (the build contains double code modules folder like: root/modules and root/modules/modules). So in general if your web site is build with best practices, drush is awesome, if not you might run into trouble.