rockiger / reactpress

Plugin that lets you easily create, build and deploy React apps into your existing WordPress sites.
https://rockiger.com/en/reactpress/
GNU General Public License v2.0
50 stars 6 forks source link

Update Dev-Enviorment does not work writing a success message #39

Closed itay-sho closed 1 year ago

itay-sho commented 1 year ago

Hey, I couldn't manage to make the "Update Dev-Environment" button to actually change my react app's index.html image

And while it doesn't change any of the code it still return a success message: image

I am running on linux wordpress container, and this folder is actually mounted from my wsl host. UPDATE: it seems like there is a write permission problem:

2023-02-12 14:36:34 [Sun Feb 12 12:36:34.040032 2023] [php:warn] [pid 36] [client 192.168.112.1:33144] PHP Warning:  file_put_contents(/var/www/html/wp-content/reactpress/apps/frontend-new/public/index.html): Failed to open stream: Permission denied in /var/www/html/wp-content/plugins/reactpress/admin/Controller.php on line 259, referer: http://localhost/wp-admin/admin.php?page=reactpress

after adding permissions everything worked well, but there is no good indication for that in the gui

rockiger commented 1 year ago

Write access was my first idea, too.

You are write the feedback should be different. I will fix this.