使用 Drush 的安全性如何?

发布于 2024-08-25 10:50:40 字数 35 浏览 6 评论 0原文

由于这是 beta-1 版本,有什么我应该特别担心的吗?

Since this is a beta-1 release, Is there anything which I should especially be worried about?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

南街九尾狐 2024-09-01 10:50:40

我已经使用它很长时间了,并且知道其他几个人也这样做过,没有任何问题。所以如果我是你我就不会担心。但我还没有测试所有的东西,比如 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.

z祗昰~ 2024-09-01 10:50:40

德鲁什太棒了。它很好地完成了它的工作。唯一需要警惕的是:

  • 您是否修改了任何 contrib 模块
    你自己?
  • “稳定”的新版本可能包含
    维护者没有发现的错误
    抓住。

但 Drush 确实提供了 contrib 模块的备份到 /backups。

Drush is awesome. It does it's job well. The only thing to be wary of are things like:

  • Have you modified any contrib modules
    yourself?
  • "Stable" new releases may contain
    bug(s) the maintainer did not
    catch.

But Drush does provide a backup of contrib modules to /backups.

慕烟庭风 2024-09-01 10:50:40

在安装/卸载模块或主题时,Drush 非常安全(通常它也会进行备份),但在更新核心以备份整个网站时请记住。我有一些网站是我维护的,不是由我构建的,如果我运行:

drush up

我会得到奇怪的行为,例如:主题被删除(这就是它的构建方式,我发现从根/主题移动主题/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:

drush up

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文