如何调试Nginx服务器

时间:2015-09-15 06:32:49

标签: nginx flask

我使用function who_we_work_with(){ $debut = 0; //The first article to be displayed query_posts('cat=41&showposts=4'); while(have_posts()) : the_post(); $myposts = get_posts('posts_per_page=10&offset=$debut'); if (has_post_thumbnail( $post->ID ) ): $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); $output='<a href="'. get_the_permalink().'"> <div class="col-lg-5 col-md-5 col-sm-12 col-xs-12 padding_right0 csr_activities_news" style="background:url(' .$image[0].');background-size:cover;">'; endif; $output.='<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 csr_news"></div></div></a>'; endwhile; return $output; } add_shortcode("who_we_work_with", "who_we_work_with"); 来在云上部署应用程序。

我的应用程序基于fabric以及其他使用flask的内容。我成功地使以下示例有效:https://realpython.com/blog/python/kickstarting-flask-on-ubuntu-setup-and-deployment/

然而,经过一些修改,我现在无法重新启动服务器,因此在浏览器上看到我的网络应用程序。我怀疑这个问题与Nginx的配置有关但我无法发现它。

你能帮忙调试一下这个问题吗?我应该从哪里开始?

nginx

0 个答案:

没有答案