I write a simple nodejs that write files, but after deploy I found no place for that files.
I tried to SSH into the instance but nothing there.
Any idea
Related
I have deployed an app on App Engine in the Google cloud project that uses the data stored in csv file as input from a folder on my Drive.
That data is created by a function in Google Script in a script file on my Drive.
Once the App script function has run and created the data in csv file it needs to call the app on the AppEngine to process that data.
Do I need to create an App Script API in the cloud project where the AppEngine is?
How do I use that API key from inside my Google script in my script file on my Drive?
Thanks
Nothing because everything I have seen seem to be the other way around.
So I have to separate apps hosted at google cloud and I would like to know if it's possible from the app1 to send a file to a specific folder in app2. I tried to ssh into an instance but I can find anything.I'm new to google cloud so if anyone knows anything please let me know.
You can use gcloud app instances scp command. For more information about the command and how to use it, please see the link below:
[https://cloud.google.com/sdk/gcloud/reference/app/instances/scp][1]
Is there a way to print the contents of my project directory using the google app engine cloud shell?
In my local terminal that would look like typing 'ls'
What command would I use in the shell?
The cloud shell is fundamentally just a shell running on a generic virtual machine in the cloud.
That machine does NOT have any special attributes (compared to your local machine) except maybe that it comes with some tools (like the google cloud SDK) already installed. It has no implicit knowledge about or access to your cloud products/projects themselves.
So, by default, the cloud shell doesn't know which/where your GAE project is. You'd have to pull a copy of your project repository/code on that instance and, when in that project's directory, you could list the project's content using ls, just like on your local machine. See also the somehow related Google Cloud: How to deploy mirrored Repository
The machine on which the cloud shell runs is also unrelated to the instances on which GAE apps are running, so you can't directly list on it the directory content of the actually deployed GAE project. If that's what you're after see Where are appengine projects located normally in the file system of the server via ssh?
I want to deploy a change in my app.yaml file to google app engine. Is there a simple way to do this without redeploying the whole app? Is there a way of changing the app.yaml file on the google cloud directly? Or just deploying one file from my Windows directory?
My app is working fine in the virtual environment but I'm having some issues on the google cloud platform. The whole deploying process takes quite a while so I'm looking for a faster way to make a change and test it.
You can use appcfg.py update app.yaml from AppEngine Python SDK:
https://cloud.google.com/appengine/docs/standard/python/tools/appcfg-arguments#update
Use the files argument to upload one or more YAML files that define
modules. No other types of YAML files can appear in the command line.
Only the specified modules will be updated.
You can try using gcloud app deploy inside the directory where your application is located in order to upload the file you need.
Specifying no files with the command deploys only the app.yaml file of a given service.
This command will only upload to the cloud the files where there are changes, so if you have only modified the app.yaml file, it should not take too much time for the upload. However, as that is the configuration file of your application, it might need to be re-deployed completely, as the changes made in that file might affect the behaviour of the whole app. That is the reason why it might be taking longer than expected.
On the other side, you may want to know that if you are using App Engine Flexible environment, the deployment will always be slower than in a Standard environment, as resources have to be deployed before launching the application itself.
I'm just getting started with Google App Engine and I have a few questions. Some of my swf files are halting their download after loading the first 10%. This doesn't happen on a traditional web host, or when running the GAE app locally. I'd like to verify that the file has uploaded properly, but I can't figure out how to view the files associated with an app once they've been uploaded to Google App Engine.
Thanks
There is no way to view files on the server. But you could download app files from the server: https://cloud.google.com/appengine/docs/java/tools/uploadinganapp#Downloading_an_Application
Also I suggest to use Google Cloud Storage for such files, there you can upload/download/verify/etc from the browser (or command line), and it better suits for serving static files, especially large ones