Adobe Brackets Live Preview w/ PHP not working (localhost is)

独自空忆成欢 提交于 2019-12-25 02:46:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!