如何在不部署的情况下将文件上传到我的Google应用引擎项目?

时间:2015-03-01 13:58:32

标签: java google-app-engine server

我需要将文件上传到我的Google应用引擎java服务器 每次添加或更新文件时,我都不想部署整个项目。 怎么办呢?

例如,我有想要添加的图像并更改logging.properties级别

谢谢, IDO

2 个答案:

答案 0 :(得分:1)

如果您使用./appcfg.sh更新命令,它将仅上传修改后的文件

https://cloud.google.com/appengine/docs/java/tools/uploadinganapp#Uploading_the_App



Beginning interaction for module default...
0% Created staging directory at: '/var/folders/cy/rj8846m10y7cf9fvlqsd02q40000gn/T/appcfg8132912209396336329.tmp'
5% Scanning for jsp files.
20% Scanning files on local disk.
25% Initiating update.
28% Cloning 52 static files.
31% Cloning 64 application files.
40% Uploading 2 files.
52% Uploaded 1 files.
61% Uploaded 2 files.
68% Initializing precompilation...
73% Sending batch containing 1 file(s) totaling 9KB.
77% Sending batch containing 1 blob(s) totaling 9KB.
90% Deploying new version.
95% Closing update: new version is ready to start serving.
98% Uploading index definitions.

Update for module default completed successfully.
Success.
Cleaning up temporary files for module default...




答案 1 :(得分:1)

由于更新代码或部分代码将始终需要(即使您只想上传静态文件),也无法上传特定文件,您可以做的是设置Git存储库以启用Push部署功能[1]。

如果您因拥有此功能而死亡,可以尝试打开功能请求[2]。

[1] https://cloud.google.com/tools/repo/push-to-deploy-quickstart

[2] https://code.google.com/p/googleappengine/wiki/FilingIssues?tm=3