How to define location of app.py in OpenShift Next Gen Developer Preview?
<p>It seems that a <code>Python 2.7</code> application in OpenShift requires an <code>app.py</code> file in the top level directory of the associated repo.  </p>

<p>My application structure, however, is like this:</p>

<p>wsgi<br>
- application (which solely contains <code>from mybottleapp import application</code>)<br>
- mybottleapp.py</p>

<p>When I look at the <code>logs</code> for one of the <code>pods</code>, it shows this error:</p>

<pre><code>WARNING: file 'app.py' not found.
ERROR: don't know how to run your application.
Please set either APP_MODULE or APP_FILE environment variables, or create a file 'app.py' to launch your application.
</code></pre>

<p>Can I set that instead of looking for <code>app.py</code> in the top level directory, it instead looks for <code>/wsgi/application</code>?  </p>

<p>These are the relevant areas from the documentation:</p>

<p><a href="https://docs.openshift.com/online/dev_guide/environment_variables.html#set-environment-variables" rel="nofollow">https://docs.openshift.com/online/dev_guide/environment_variables.html#set-environment-variables</a></p>

<p><a href="https://docs.openshift.com/online/dev_guide/environment_variables.html#list-environment-variables" rel="nofollow">https://docs.openshift.com/online/dev_guide/environment_variables.html#list-environment-variables</a></p>

<p>But when I try the following to view available variables:</p>

<pre><code>oc env pod/username-1-gx3h8 --list
</code></pre>

<p>I get:  </p>

<pre><code># pods username-1-gx3h8, container username
</code></pre>

<p>I also tried:</p>

<pre><code>oc env pod/username-1-gx3h8 APP_FILE=/wsgi/application
</code></pre>

<p>And got:</p>

<pre><code>error: Pod "username-1-gx3h8" is invalid: spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds`
</code></pre>