Code Monkey home page Code Monkey logo

Comments (3)

Rayken avatar Rayken commented on August 23, 2024

Still getting this 'bug'. Plugins that cache files to wp-content/uploads/ and maybe cache/files/* aren't accessible due to this; can't seem to work around it, even commenting the rules in nginx-wp-common.conf

from wpca-products-build-environment.

tlartaud avatar tlartaud commented on August 23, 2024

Hi @Quaked

You could simply ssh to the VM and navigate to www/wordpress-default/wp-content and create the required symlinks using the standard ln -s command.

You can find for example the script which is provisioning our symlinks (wp-plugins and wp-themes) here : vagrant-config\provision\provision-post.sh. This script is copied to the VM before provisioning it.

I'm not sure sure that it cause a problem without a symlink. Personally, I don't have one for wp-content/uploads. The problem is just that all the files are kept on the VM, and then synced to my computer, but I really don't care about that.

For the nginx-wp-common.conf files problem, don't forget to re-provision the VM after editing the file.

from wpca-products-build-environment.

tlartaud avatar tlartaud commented on August 23, 2024

@Quaked @vpratfr
We updated the build-env to use VVV2.
They changed the directory structure from /srv/www/wordpress-default/wp-content to /srv/www/wordpress-default/public_html/wp-content.

To update, I think the best way is to

  • dump your database
  • destroy the VM
  • delete vagrant/.vagrant folder
  • delete vagrant/www folder
  • pull this repo last version
  • run . up-vagrant.sh
  • update the main wp-config.php file according to this comment
  • add your DB dump back, and maybe perform a DB replace from /srv/www/wordpress-default/wp-content to /srv/www/wordpress-default/public_html/wp-content using a DB replacement tool (free), or WPMDB (premium).
  • done

For the files issue, you still need to edit the file nginx-wp-common.conf by hand, delete the files rewrite rules, and then re-provision the VM. It's from the VVV repository, and we have no simple and safe way to delete this automatically before the first provisionning.

Regards.

from wpca-products-build-environment.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.