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
Related
I use the Google App Engine Standard environment to develop my Python app using Development SDK 1.9.61.
I'm trying to learn to use Google Cloud Storage in my app by following these instructions. I verified that my default and staging buckets do exist via the cloud console, and manually uploaded a sample file to each bucket using my browser.
Next, I programmatically uploaded some files to a bucket (so I thought) via my local development app instance per Google's instructions.
However, when I checked my cloud storage buckets via my GCP Console in my browser, I could not find the files. After searching my local development SDK console, I eventually found the files located in the local "Blobstore Viewer".
I'm confused, based on Google's instructions I expected to find the files in my project's cloud storage bucket.
I searched the App Engine Python Release Notes for some potential SDK version changes to explain this behavior, but couldn't find anything relevant.
Is this the way it's supposed to work? Are Google's instructions in error?
If you upload files to a local development server, those exist in-memory on your machine. The GCP Console doesn't interact with your local development server, it interacts with the public (production) Google Cloud Storage API.
So in essence, the files on your local dev server are in a completely different namespace. If you want to interact with the production version of Google Cloud Storage and see the results in the GCP console, you'll need to use a non-dev-server deployment of your application.
I am trying to create an application where I host a few static html files that a user authors and uploads to GAE.
Is it possible to upload these files to WAR folder for hosting without a redeploy.
Uploading to WAR may not be a good idea as a redeploy would wipe out the user authored files. Would like these files to be stored across deployments.
May be a GCS bucket ? But in case of GCS bucket, how would you serve these static html files over a GAE/page.html url ?
I was reading that GCS bucket would serve as a web folder by turning a knob on that bucket. But how scalable would that be ? Is that even a good approach to use GCS bucket as a web url ?
Would be good to get some ideas on addressing this as I am new to GAE ! Thanks a lot
You can use Google Cloud Storage to serve static websites and a Google AppEngine application to update the bucket when user edit/upload some content to the website.
You would probably need to have different subdomains for this like:
www.example.com - GCS
admin.example.com - GAE app that manages uploading/editing files using GCS API.
This should be pretty scalable & cheap to serve traffic.
Apart from GCS you also can considering storing static files on Amazon S3 or any other hosting that has API. Actually you even can develop a solution that upload files to multiple storages like GCS, S3, etc. and serve them using fault-tolerant DNS or reverse-proxy (like CloudFlare) so if Google or Amazon goes down your website is up and running.
Can google app engine be used to store or host an adobe air file (.air)? The .air file will be used as a software updater. I have tried uploading files view google app engine launcher and the only files uploaded are the php and xml files.
Any help is appreciated. Thanks
You should be able to upload content i.e. your .air files. Just make sure to place those files in the appropriate content folders for your web application and you should be good.
Another option for hosting files as a web site could be Google Drive too. Check out : http://www.labnol.org/internet/host-website-on-google-drive/28178/
When an application is deployed in GAE cloud (Appspot.com); Is there a way to update or modify the static files on the src/main/webapps folder? For example the HTML and JSP files?
Either upload a modified HTML and JSP without redeploying the whole application?
Much like what we can do with Apache Tomcat, where we can modify the contents of the deployed app?
As far as I know, there is no other way short of redeploying the entire app. App Engine runs in a sandbox, and write file access is one of the things disallowed by the security manager.
Unfortunately, "Writing to local files is not supported in App Engine" http://goo.gl/kxNM5
I'm newbie in Google App Engine.
I can't found information about appcfg.py, which explains how to specify a few files to uploading. When I'm executing
appcfg.py update .
it's uploading all project folder and it takes a lot of time.
How can I upload to server only main.py, for example?
You can't only upload part of the application, you upload the entire application at once.