问题
I'm trying to edit my custom Wordpress theme, but whenever I specify the path to the localhost server, Brackets returns
'To launch preview with a server-side file, you need to specify a Base URL for this project.'
On my Mac, my Wordpress theme is in this directory: Users/myname/Desktop/www.scabrackets.dev/wp-content/themes/customTheme
When I go to set my Base Host URL on Brackets, I've tried literally every combination of the address above, as well as adding "/index.php" and other page names like that and just typing in http://localhost/..., but still get that error message.
I'm running the newest version of Brackets (1.7), as well as DesktopServer (newest version) to establish the local host. What am I doing wrong?? Thanks for any advice!
回答1:
I have same problem, its cause Bracket need open project folder, because Bracket need load another file/asset when do a live preview. my problem solved i just click
file -> open folder -> project_folder
And choose your project root folder, then try click the live preview again, its work for me
来源:https://stackoverflow.com/questions/37790962/adobe-brackets-live-preview-w-php-not-working-localhost-is