GithubHelp home page GithubHelp logo

Comments (3)

matzeeable avatar matzeeable commented on September 25, 2024

Hi!

Thanks for your issue report. What do you mean exactly? How does your command look like exactly?

from wp-react-starter.

themeszone avatar themeszone commented on September 25, 2024

While creating a new workspace 2nd prompt asks for URL that should be used for WordPress development:
see screenshot below:
https://www.evernote.com/l/ACfWwTRiX7dBlLPsTPAwsBrIXatf0sHiBrw
After the setup is finished and I run "yarn docker:start" and then I go to the URL provided I get a Redirect Loop.

To fix that I have to open phpMyAdmin and change siteurl and home option in wp_options table to the URL provided

from wp-react-starter.

matzeeable avatar matzeeable commented on September 25, 2024

Hi @themeszone !

Sorry for the late response. Can you please do a test for me so I can ensure where I have to look because I can not reprocedure the issue:

  1. Run yarn docker:purge; it completely removes the WP instance
  2. Run docker:start
  3. Check if issues happens again

if ! $(wp --allow-root core is-installed); then
# Install wordpress itself
wp --allow-root core install --path="/var/www/html" --url="$_WP_CI_INSTALL_URL" --title="wpdev" --admin_user=wordpress --admin_password=wordpress [email protected]
# Config parameters
wp --allow-root config set WP_DEBUG true --raw
wp --allow-root config set SCRIPT_DEBUG true --raw
wp --allow-root config set FS_METHOD direct # see https://git.io/fj4IK, https://git.io/fj4Ii
# Permalink structure
wp --allow-root rewrite structure '/%year%/%monthnum%/%postname%/' --hard
# Import startup.sql script if available
test -f "/scripts/startup.sql" && wp --allow-root db import /scripts/startup.sql
fi

Inside this if statement the WordPress instance gets installed. Usually, the wp core install command makes sure the options siteurl and home are set correctly. Perhaps you can figure this out and open a PR. 🙂

from wp-react-starter.

Related Issues (20)

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.