title: Flask Assets bundles not compiling when run under uWSGI
body: <p>They run normally when I run the flask app directly but don't compile or replace the address in the template when run under uWSGI.</p>
  
  <p>How can I debug this?</p>
  
  <p>EDIT:</p>
  
  <p>code:
      assets = Environment(app)</p>
  
  <pre><code>...
  
  if __name__ == "__main__":        
      assets.register(YAMLLoader(os.path.join(DIR,"assets.yml")).load_bundles())
  
      if os.environ.get("DEBUG_FLASK"):
          app.run()
      else:
          app.run(debug=True)
  </code></pre>
  
  <p>assets.yml:</p>
  
  <pre><code>style_css:
      filters: less
      output: css/style.css
      contents:
          - css/style.less
  </code></pre>