本文介绍了带PHP的Adobe Brackets Live Preview不起作用(localhost是)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编辑自定义的Wordpress主题,但是每当我指定本地服务器的路径时,括号都会返回

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.'

在Mac上,我的Wordpress主题位于以下目录中:Users/myname/Desktop/www.scabrackets.dev/wp-content/themes/customTheme

On my Mac, my Wordpress theme is in this directory: Users/myname/Desktop/www.scabrackets.dev/wp-content/themes/customTheme

当我在括号中设置我的基本主机URL时,我实际上尝试了上面地址的每种组合,并添加了"/index.php"和类似的其他页面名称,然后键入 http://localhost/ ...,但仍然会收到该错误消息.

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.

我正在运行最新版本的Brackets(1.7),以及DesktopServer(最新版本)来建立本地主机.我究竟做错了什么??感谢您的任何建议!

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!

推荐答案

我有相同的问题,其原因是Bracket需要打开项目文件夹,因为在进行实时预览时Bracket需要加载另一个文件/资产.我的问题解决了,我只需单击

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

然后选择您的项目根文件夹,然后尝试再次单击实时预览,它对我有用.

And choose your project root folder, then try click the live preview again, its work for me

这篇关于带PHP的Adobe Brackets Live Preview不起作用(localhost是)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-10 22:47