Java 8 api server APPNAME environment
@@ -733,7 +733,6 @@ def main():
options = cli_parser.create_command_line_parser(
cli_parser.API_SERVER_CONFIGURATION).parse_args()
- os.environ['NGINX_HOST'] = options.nginx_host
logging.getLogger().setLevel(
constants.LOG_LEVEL_TO_PYTHON_CONSTANT[options.dev_appserver_log_level])
@@ -755,6 +754,10 @@ def main():
request_info_lib._LocalFakeDispatcher())
# pylint: enable=protected-access
+ # setup environment
+ os.environ['APPNAME'] = app_id # or in tools/api_server.py _SetupStubs along with os.environ['APPLICATION_ID'] = app_id ???
+ os.environ['NGINX_HOST'] = options.nginx_host
+
server = create_api_server(
request_info=request_info,
storage_path=get_storage_path(options.storage_path, app_id),
