• Resolved yfajrin

    (@yfajrin)


    Hi, I have a quite simple react app that is already done in my local machine. I run the build and put it in the folder, but I can’t get it to work, and I’m not sure why.

    I tried to put the app in a page that is under a subdomain which I created using wordpress multisite network. In the error log, I got this following errors

    [27-May-2023 09:22:19 UTC] PHP Warning:  file_get_contents(/home/kangfajr/public_html/wp-content/reactpress/apps/bmc-generator-v1/package.json): failed to open stream: No such file or directory in /home/kangfajr/public_html/wp-content/plugins/reactpress/admin/Controller.php on line 171
    
    [27-May-2023 09:22:21 UTC] PHP Warning: file_put_contents(/home/kangfajr/public_html/wp-content/reactpress/apps/bmc-generator-v1/public/index.html): failed to open stream: No such file or directory in /home/kangfajr/public_html/wp-content/plugins/reactpress/admin/Controller.php on line 320

    In my local machine, the app works perfectly. I need help in deploying the app. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rockiger

    (@rockiger)

    What do you mean with local machine? A WordPress dev environment, or do you mean your React dev server?

    You can’t just use some existing React app to deploy. You need to use the whole ReactPress workflow. https://rockiger.com/en/reactpress/getting-started/

    To ensure accurate testing and troubleshooting during development, it’s recommended to mirror your live environment. This includes using the same theme, plugins, and configurations. This practice can help identify and resolve issues that might appear under your specific live settings. I did not have the same theme installed and that caused some problems. If you have further questions, feel free to ask.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Existing react app, use reactpress to deploy it to wordpress multisite subdomain’ is closed to new replies.