I am developing nodejs web app and trying to run it in the Google cloud.
Only files in the root folder get deployed to Google App Engine using gcloud app deploy
command.
The appengine/express sample app depends on subfolders and doesn't work when deployed
Steps to reproduce:
- create simple app with package.json, app.yaml, app.js
- create some folders, put some files in them
- install gcloud, run gcloud app deploy from application folder
- if you required any local modules located in a subfolder, deployment will fail
- if your deployment was successful, go to google cloud console, app engine, versions, click on number in Instances column - you will see a list of instances, on the right click ssh.
- in the ssh console run "
container_exec gaeapp /bin/bash
", then "cd app
", then "ls
" - you will see that no folders were deployed with the application
Is this a problem with the environment, gcloud utility or am I doing something wrong?