google-app-engine

In GAE how do you *stop* running your app?

孤人 提交于 2020-01-14 10:46:11
问题 I'm on Eclipse (Helios) using GAE SDK 1.5.2, etc. (Just updated everything, today.) "In the old days..." (earlier SDKs), when I ran/debug my app locally, it would create an app on my machine (Mac, OS-X 10.6.latest) and, when I wanted to quit it, I would just CMD-Q that app. Now, when I launch the app, it appears to run as a sub-process of Eclipse (assumption on my part -- I can't find any separate app that's running), and I can't seem to figure out how to quit the app. The specific problem I

Updating in datastore not working in GAE 1.9.0

只谈情不闲聊 提交于 2020-01-14 10:42:07
问题 We have a PHP application running on GAE. It connects to Cloud Datastore using the Google PHP library (v0.6.7). Google introduced in the last days a new version of App Engine, v1.9.0 (not oficially released), which apparently was running fine, just as 1.8.9 was. However, we have been experiencing some issues related to Cloud Datastore. Sometimes, all the operations regarding to entities updating are just ignored. All the queries used to retrieve information work perfectly, however if we want

How to properly set the JVM options in a flexible GAE application

£可爱£侵袭症+ 提交于 2020-01-14 10:33:12
问题 the following is my app.yaml file for a GAE flexible Java 8 / Jetty application. runtime: java env: flex manual_scaling: instances: 1 runtime_config: # Optional jdk: openjdk8 server: jetty9 resources: cpu: 2 memory_gb: 4.0 env_variables: JAVA_HEAP_OPTS: -Xms3072M -Xmx3072M health_check: enable_health_check: False handlers: - url: /.* script: this field is required, but ignored For some reason the JAVA_HEAP_OPTS value is not used when deploying the app. A least I don't think it's used, because

IP Address of Google App engine application

元气小坏坏 提交于 2020-01-14 10:16:05
问题 I have deployed an application in Google App engine. I'm able to get the IP address of the machine where this app deployed but my question is does this app always runs on same IP or any chance of running on different IP. Because google app engine is a cloud solution , it runs multiple instances at a time in multiple places. Thanks 回答1: GAE uses different IPs. If you'd like more info I found this link: https://cloud.google.com/appengine/kb/#static-ip 来源: https://stackoverflow.com/questions

Using gcloud on Travis CI

南笙酒味 提交于 2020-01-14 05:15:07
问题 I have gcloud installed and working and a service account gets also activated. I run the following and get a success(?): $ gcloud auth activate-service-account "${GAE_CLIENT_ACCOUNT}" --key-file "${GAE_CLIENT_KEY_JSON_FILE}" Activated service account credentials for: [xxxxx@developer.gserviceaccount.com] Then I run this: $ gcloud preview app deploy app.yaml --project "${GAE_PROJECT_ID}" --quiet --version "${GAE_PROJECT_VERSION}" You are about to deploy the following modules: - ricochet-robots

I want to scrape a site using GAE and post the results into a Google Entity

回眸只為那壹抹淺笑 提交于 2020-01-14 03:28:06
问题 I want to scrape this URL : https://www.xstreetsl.com/modules.php?searchSubmitImage_x=0&searchSubmitImage_y=0&SearchLocale=0&name=Marketplace&SearchKeyword=business&searchSubmitImage.x=0&searchSubmitImage.y=0&SearchLocale=0&SearchPriceMin=&SearchPriceMax=&SearchRatingMin=&SearchRatingMax=&sort=&dir=asc Go into each of the links and extract out various pieces of information e.g. permissions, prims etc then post the results into a Entity on google app engine. I want to know the best way to go

How to make Django migrations on Google Cloud Platform?

大兔子大兔子 提交于 2020-01-14 03:17:11
问题 I would like to host my app on Google App Engine and have a Google SQL instance for the database. The main part of the app is an API built with Django Rest Framework. I asked Google Cloud Support about the best practices of making migrations in production when I need to modify the database's schema. Since I am new to web development, perhaps any experts here have similar experience and can verify if the suggested process is something what I can really follow? For database migration best

Appengine datastore not updating multiple records

会有一股神秘感。 提交于 2020-01-14 03:08:26
问题 votergroup = db.GqlQuery("SELECT * FROM Voter WHERE lastname = :1", 'AGEE') for voter in votergroup: voter.email = 'testemail@testemail.com' db.put(votergroup) The above code doesn't seem to be updating the records as it shows in the appengine documentation. I also tried using a query object to no avail. I know votergroup is pulling records, because I did a count on the object when debugging and it showed 10 records. In fact, before the db.put, I looped through voter.email, and it seems like

Google App Engine - SiteMap Creation for a social network

[亡魂溺海] 提交于 2020-01-14 03:04:28
问题 I am creating a social tool - I want to allow search engines to pick up "public" user profiles - like twitter and face-book. I have seen all the protocol info at http://www.sitemaps.org and i understand this and how to build such a file - along with an index if i exceed the 50K limit. Where i am struggling is the concept of how i make this run. The site map for my general site pages is simple i can use a tool to create the file - or a script - host the file - submit the file and done. What i

how to write csv file in google app by using java

点点圈 提交于 2020-01-14 03:02:55
问题 I'm currently working on a project that is done in Java, on google appengine. i have above 2000 records Appengine does not allow files to be stored so any on-disk representation objects cannot be used. Some of these include the File class. I want to write data and export it to a few csv files, the user to download it. How may I do this without using any File classes? I'm not very experienced in file handling so I hope you guys can advise me. Thanks. 回答1: Just generate the csv in memory using