support web2py.py --GAE {app-name}, thanks Paolo
This commit is contained in:
+1
-1
Submodule gluon/packages/dal updated: e973f27b69...0c2ba9d71f
+4
-2
@@ -618,7 +618,7 @@ def console():
|
|||||||
'--GAE',
|
'--GAE',
|
||||||
default=None,
|
default=None,
|
||||||
dest='gae',
|
dest='gae',
|
||||||
help="'-G configure' will create app.yaml and gaehandler.py")
|
help="'-G {gae app name}' will create app.yaml and gaehandler.py")
|
||||||
|
|
||||||
msg = ('password to be used for administration '
|
msg = ('password to be used for administration '
|
||||||
'(use -a "<recycle>" to reuse the last password))')
|
'(use -a "<recycle>" to reuse the last password))')
|
||||||
@@ -937,7 +937,9 @@ def console():
|
|||||||
|
|
||||||
if options.gae:
|
if options.gae:
|
||||||
if not os.path.exists('app.yaml'):
|
if not os.path.exists('app.yaml'):
|
||||||
name = input("Your GAE app name: ")
|
name = options.gae
|
||||||
|
if name == 'configure':
|
||||||
|
name = input("Your GAE app name: ")
|
||||||
content = open(os.path.join('examples', 'app.example.yaml'), 'rb').read()
|
content = open(os.path.join('examples', 'app.example.yaml'), 'rb').read()
|
||||||
open('app.yaml', 'wb').write(content.replace("yourappname", name))
|
open('app.yaml', 'wb').write(content.replace("yourappname", name))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user