my app is always down ! php and rest api

my app instance are always down and health is always red ! my code is working well in localhost! php with rest api! any misconfig ? it is always fails to start instance ! pls help me/!!!! is there any limitations i have used 2 instance with 512M