AWS Lightsail WordPress版本控制

发布于 2025-01-22 04:33:46 字数 441 浏览 0 评论 0 原文

我正在托管在AWS Lightsail实例(Bitnami)上的WordPress网站上工作,我想拥有版本控制,以与同事一起在我们的网站主题上工作。

我喜欢只需要 git拉才能更改网站的想法。 在WordPress文件夹中(包含WP-ADMIN,许可证,WP-Config.php等...),有WP-CONTENT文件夹,但这是一个符号链接,将WordPress文件夹以外指向 root/bitnami /wordpress/wp-content 。我不能在WordPress文件夹中使用git,但是我可以在 root/bitnami/wordpress/wp-content 中设置它线。

WP-content文件夹是一个符号链接,是否有一个原因指向WordPress文件夹之外,或者只是设置事物的人的错误? 在这种情况下,使用Git绕过FTP客户端可以吗?

I'm working on a wordpress site hosted on an AWS Lightsail instance (Bitnami) and i'd like to have version control to work on our site themes with a coworker.

I like the idea of just having to git pull to make changes to the site.
In the wordpress folder (that contains wp-admin, licences, wp-config.php, etc...), there is the wp-content folder but it's a symbolic link that points outside the wordpress folder to root/bitnami/wordpress/wp-content. I can't use git in the wordpress folder but I can set it up in the root/bitnami/wordpress/wp-content but it feels like bad practice since it asks me for admin privileges for every command line.

Is there a reason the wp-content folder is a symbolic link that points to outside the wordpress folder or is it just a mistake from the person who set things up?
Is it okay to use git to bypass an ftp client in this case?

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

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

发布评论

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

评论(1

灰色世界里的红玫瑰 2025-01-29 04:33:46

因此,我今天只是遇到了同样的问题,我通过将目录的目录移动到Symlinks的位置并删除Symlinks来解决此问题。

这是我的过程(尽管您可以首先删除符号链接):

  1. 移动WP-CONTENT MV/BITNAMI/WORDPRESS/WP-CONTENT/location/of/wordpress/exture-directory-name
  2. delete symlinks rm -f/location/of/wordpress/
  3. 使用MOVE mv/of/wordpress/wordpress/exture-directory-name/location/of/wordpress/wordpress/wp-content < /code>

您可以重复WP-config.php文件的相同步骤。完成此操作后,我就可以验证WordPress仍在使用Lightsail实例。希望这会有所帮助

So I just had this same issue today, and I resolved this by moving the directories for .../wp-content to the location of the symlinks and deleting the symlinks.

This was my process (though you could delete the symlinks first):

  1. Move wp-content mv /bitnami/wordpress/wp-content /location/of/wordpress/temporary-directory-name
  2. Delete symlinks rm -f /location/of/wordpress/
  3. Rename temporary-directory-name using move mv /location/of/wordpress/temporary-directory-name /location/of/wordpress/wp-content

You can then repeat the same steps for the wp-config.php file. Once this was done I was able to verify Wordpress was still working on my LightSail instance. Hope this helps

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