Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cafrida

    (@cafrida)

    Thanks for the videos!

    I have my react app working correctly on wordpress in local but when I update my build file to the deployment (I’m using an aws wordpress image) the react app is not shown. I’m using the correct path and I can see the app in the reactpress plugin as a deployment mode.
    Do you know what is happening?

    Thread Starter cafrida

    (@cafrida)

    I created the app directly in the app directory of the reactpress /opt/bitnami/wordpress/wp-content/reactpress/apps/my-app of my wordpress allocated in a was instance, I don’t understand what you mean by first build.. (I have to create it first locally with wordpress in local??)

    Thread Starter cafrida

    (@cafrida)

    Yes I can see the buid in the wordpress and any error appears, but the react app didn’t refresh.

    This is the text that appearas when I run npm run build:

    <em>bitnami@----:/opt/bitnami/wordpress/wp-content/reactpress/apps/my-app$ npm run build
    
    > [email protected] build /bitnami/wordpress/wp-content/reactpress/apps/my-app
    > PUBLIC_URL=/wp-content/reactpress/apps/my-app/build react-scripts build
    
    Creating an optimized production build...
    Compiled successfully.
    
    File sizes after gzip:
    
      43.54 kB  build/static/js/main.4a2a4273.js
      1.78 kB   build/static/js/787.28cb0dcd.chunk.js
      541 B     build/static/css/main.073c9b0a.css
    
    The project was built assuming it is hosted at /wp-content/reactpress/apps/my-app/build/.
    You can control this with the homepage field in your package.json.
    
    The build folder is ready to be deployed.
    
    Find out more about deployment here:
    
      https://cra.link/deployment

    And the app directory of reactpress is /opt/bitnami/wordpress/wp-content/reactpress/apps/my-app

Viewing 3 replies - 1 through 3 (of 3 total)