pub服务于非根目录

时间:2016-04-14 05:44:39

标签: dart dart-pub

是否可以在开发期间运行localhost:8888/application并在localhost:8888而不是$post_type='home_block'; $arg=array( 'post_type'=>$post_type, 'post_status'=>'publish', 'post_per_page'=>'4', 'caller_get_posts'=>'1' ); $my_query=null; $my_query= new WP_Query($arg); if($my_query->have_posts()): while($my_query->have_posts()): $my_query->the_post();?> <div class="service-list-box"> <div class="service-image"> <?php the_post_thumbnail();?> </div> <div class="service-list"> <?php the_content();?> <?php the_title();?> </div> </div> <?php endwhile; endif; ?> 上提供应用程序?

我没有看到任何我可以在酒吧本身指定的旗帜,所以想知道我是否可以使用某种变压器。

1 个答案:

答案 0 :(得分:2)

我不认为这是可能的。也许添加符号链接

my_project/web/application

指向

my_project/web

可以让你做你想做的事。

另一种选择是使用转发

的代理
http://localhost:8888/application 

http://localhost:8080/

当您需要在开发期间使用第三方服务器时,建议使用代理,其中Dart资源请求被转发到pub serve,其他所有内容都转发给第三方服务器。

相关问题