At first I have a Java-Module set up in AndroidStudio that I upload to my GoogleAppEngine server which works pretty good. (Android Studio - Build -Deploy Module to Google App Engine)
Now I also want to upload an additioanl node.js server to the same App Engine instance. The code shall also access the firebase databases, that were created in the Java module. To uplaod the node.js code I followed Googles QuickStart tutorial using gcloud app deploy
.
As I know this creates a new version in the backends flex environment disabling my existing Java Code.
So my questions is: How can I add a node.js server to my existing Instance? I guess I have to do this within the Android Studio project then but not within gcloud app deploy
. How can I create a new module such that the node.js server is available on a subfolder then for instance?
You won't be able to "upload an additional node.js server to the same App Engine instance" because it's a different language (and environment), thus they can't be in the same service/module (an instance can only execute code from one module).
You need to name the services/modules differently so that they don't overwrite each-other at deployment time. After that they can be deployed independently.
Check your
service:
configuration in the node.js modules'sapp.yaml
file. From General settings:And your
module
and/orservice
configs in your java module'sappengine-web.xml
file.See also Microservices Architecture on Google App Engine