Commits

Juarez Bochi committed b4baee2

Added batch scripts to deploy, run and remote console

  • Participants
  • Parent commits cc7d582

Comments (0)

Files changed (4)

+appcfg.py update src 

remote_console.bat

+cd src
+python appengine_console.py voosonline 
+cd ..
+dev_appserver.py src 

src/appengine_console.py

+#!/usr/bin/python
+import code
+import getpass
+import sys
+
+sys.path.append("c:/program files/google/google_appengine")
+sys.path.append("c:/program files/google/google_appengine/lib/fancy_urllib")
+sys.path.append("c:/program files/google/google_appengine/lib/yaml/lib")
+
+from google.appengine.ext.remote_api import remote_api_stub
+from google.appengine.ext import db
+
+def auth_func():
+    return raw_input('Username:'), getpass.getpass('Password:')
+
+if len(sys.argv) < 2:
+    print "Usage: %s app_id [host]" % (sys.argv[0],)
+app_id = sys.argv[1]
+if len(sys.argv) > 2:
+    host = sys.argv[2]
+else:
+    host = '%s.appspot.com' % app_id
+
+remote_api_stub.ConfigureRemoteDatastore(app_id, '/_ah/remote_api', auth_func, host)
+
+code.interact('App Engine interactive console for %s' % (app_id,), None, locals())