7/5/2023 0 Comments Codekit hook not runningThis may be useful on your development and/or staging server and allows you to maintain the same /site/config.php file between staging and production server. When present, ProcessWire will use this file rather than /site/config.php. You may optionally maintain a separate development configuration file at /site/config-dev.php. Also changing the config file whenever we use npm run serve is a little tedious. Is there any settings we can change to make the backend show edit links with localhost:8080 ? I've tried changing $config->httpHosts to 'localhost:8080' but then the backend uses HTTPS urls for the view links even though the template settings say HTTP or HTTPS (or even with HTTP only I get HTTPS urls). It seems that ProcessWire is using the host of $config->httpHosts and not the current browser URL that it is running on. The backend also works on localhost:8080, but what annoys us a lot is that once we click any of the "view" links in the backend, we land on the regular ddev url (which is something like ) which due to webpack does not have any of the JS and CSS assets in place and therefore is not usable. To get live updates we run "npm run serve" which makes the pw site available under localhost:8080 That way we get live updates for frontend development when we save any file that is watched by webpack. We are working with webpack and have a devServer running and proxying requests to our DDEV powered pw site.
0 Comments
Leave a Reply. |