johnmcneil
Forum Replies Created
-
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Problem after running npm startI don’t see a file by that name. Maybe you mean this? ~/Local Sites/johnmcneilme/logs/nginx/error.log
2022/02/26 01:30:46 [error] 41292#0: *489 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: “GET /ghg HTTP/1.0”, upstream: “fastcgi://unix:/home/jam/.config/Local/run/AhYKJ94o1/php/php-fpm.socket:”, host: “johnmcneilme.local”, referrer: “http://johnmcneilme.local/ghg”
2022/02/26 01:30:46 [error] 41292#0: *539 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.0”, upstream: “fastcgi://unix:/home/jam/.config/Local/run/AhYKJ94o1/php/php-fpm.socket:”, host: “johnmcneilme.local”
2022/02/26 01:30:46 [error] 41292#0: *541 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.0”, upstream: “fastcgi://unix:/home/jam/.config/Local/run/AhYKJ94o1/php/php-fpm.socket:”, host: “johnmcneilme.local”
2022/02/26 01:30:46 [error] 41292#0: *543 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: “GET /wp-admin/ HTTP/1.0”, upstream: “fastcgi://unix:/home/jam/.config/Local/run/AhYKJ94o1/php/php-fpm.socket:”, host: “johnmcneilme.local”
2022/02/26 01:30:46 [error] 41292#0: *545 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.0”, upstream: “fastcgi://unix:/home/jam/.config/Local/run/AhYKJ94o1/php/php-fpm.socket:”, host: “johnmcneilme.local”If that’s the wrong log, where would I find the correct one?
Thanks for your help!- This reply was modified 4 years, 2 months ago by johnmcneil.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Problem after running npm startYes. Same problem.
- This reply was modified 4 years, 2 months ago by johnmcneil.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Problem after running npm startNo, this shouldn’t be a problem. You should start with create-react-app in you local system. But your react-app needs to be in the apps folder of your WordPress dev system. Otherwise, it can’t work. Please check with the instructions.
You need to follow them to the letter:
Install ReactPress on your local WordPress installation
Use create-react-app from the command line in the apps folder shown in ReactPress
Reload ReactPress page and give the app a slug
Develop your React
Build the app
Install ReactPress on live WordPress site
Create the same folder there (no need for create-react-app) there
Upload the build folder of your React app into the created folder.<br>
Reload ReactPress page and give the app the SAME slug.Actually I did follow the instructions. I did run create-react-app in the apps folder of my local WordPress development environment. It led to the problem I already described.
However, I found a work-around. I can develop a React app locally using node.js, rather than a local WordPress environment. Then when I am ready to deploy, I run npm build and then sftp the build folder to wp-content/reactpress/apps/ on the live WordPress website in production. This works, but is not what your instructions say.
- This reply was modified 4 years, 2 months ago by johnmcneil.
- This reply was modified 4 years, 2 months ago by johnmcneil.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Problem after running npm startIs this what you mean? This is the content of
/srv/www/wordpress/wp-content/reactpress/apps/ghg/public/index.html<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.48 (Ubuntu) Server at localhost Port 80</address>
</body></html>I didn’t know about localWP, thanks for the recommendation. I set up a local wordpress environment using these instructions for Ubuntu: https://ubuntu.com/tutorials/install-and-configure-wordpress#1-overview
I don’t know if this is relevant, but I have also been using create-react-app with node.js to develop react apps locally. I’d like to have one foot in each world. Could that be interfering?
- This reply was modified 4 years, 2 months ago by johnmcneil.