i deployed local project using gcloud command since there ok. i'm getting 500 error in browser, still have hundreds of questions. where's code? doing gcloud behind scenes when deploy? why see 3 instances when deployed 1 project?
i did ssh each of 3 compute instances see , couldn't find code. want silly , easy, go index.php file , echo '1';die;
check that's code can play make project work on google platform.
because i'm noob on won't able tweak project work on google cloud @ first, it's silly must!
my current , config file:
runtime: php vm: true runtime_config: document_root: public
could me?
thank you.
you using appengine flexible environment (what used called managed vms). environment uses docker build image out of application code , run in container.
see additional debugging part of managed vms php tutorial more info on how debug on machine. after sshing instance, on host machine, still need run additional commands access container, application code running. following command on machine:
sudo docker exec -t -i gaeapp /bin/bash
once there, can edit running application running following commands
apt-get update apt-get install vim # or editor of choice vi /app/public/index.php # assuming file
yes, have install vim on container because not installed default, production image.
also sure check logging page in developer console, 500 error message logged, , it's lot easier going through these steps!