Re: Reg the --no-route option in cf push


Amit Kumar Gupta
 

Hi Nithiyarsi,

Check out
https://docs.cloudfoundry.org/devguide/deploy-apps/troubleshoot-app-health.html#start

*Make sure your application code uses the PORT environment variable. Your
application may be failing because it is listening on the wrong port.
Instead of hard coding the port on which your application listens, use the
PORT environment variable.*

That might fix it for you.

Amit

On Tue, Jun 7, 2016 at 9:06 AM, Nithiyasri Gnanasekaran -X (ngnanase - TECH
MAHINDRA LIM at Cisco) <ngnanase(a)cisco.com> wrote:

Hi



I have created a custom buildpack with python,nginx and gunicorn.. And am
cf pushing the Django app by specifying it in the manifest.yml file.

The app is started successfully if I give –no-route option while cf push.



But if I remove the app is not starting..



Please let me know what is the reason

I get the app crashed error and no other information to find the reason..



Regards

Nithiyarsi

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.