英文:
Is it possible to change the directory where the modules are copied using GeneXus /Install?
问题
每次执行 GeneXus /install 时,它会将所有 .OPC 文件从模块复制到目录 %userprofile%.gxmodules,并且如果有多个模块版本,它会占用数GB的空间。
通常,Windows 上的 %userprofile% 目录位于 C:\ 驱动器上。
系统管理员正在询问是否可以将缓存和本地模块服务器移动到与 C: 不同的目录(和不同的磁盘)。
英文:
Every time GeneXus /install is executed, it copy all .OPC files from the modules to the directory %userprofile%.gxmodules, and if there are multiple module versions, it occupies several GB.
Typically, %userprofile% on Windows is located on the c:\ drive.
System administrators are asking if it's possible to move the cache and local module server to a different directory (and a different disk) other than c:.
答案1
得分: 2
要更改 GeneXus 存储模块存储库的目录,您需要将以下条目添加到 genexus.exe.config 文件中。
<appSettings>
<add key="UserAppDataPath" value="C:\SomePath\Inst1\UserAppData" />
</appSettings>
您还可以通过将以下条目添加到 genexus.exe.config 文件中,将 GeneXus 需要的临时文件集中存储。
<appSettings>
<add key="ProgramDataPath" value="C:\SomePath\Inst1\ProgramData" />
</appSettings>
通过这些配置,您可以在多个用户之间共享模块存储库(对于构建机器很有用),还可以管理同一 GeneXus 版本的不同升级的多个安装,而无需担心在不同版本之间共享文件引发的兼容性问题。
英文:
To change the directory where the module repository is stored in GeneXus, you need to add the following entries to the genexus.exe.config file.
<appSettings>
<add key="UserAppDataPath" value="C:\SomePath\Inst1\UserAppData" />
</appSettings>
You can also centralize the temporary files that GeneXus needs to function by adding the following entry to the genexus.exe.config file.
<appSettings>
<add key="ProgramDataPath" value="C:\SomePath\Inst1\ProgramData" />
</appSettings>
With these configurations, you can share the module repository among multiple users (useful for build machines) and also manage multiple installations of different upgrades of the same GeneXus version without the fear of compatibility issues caused by sharing files between different versions.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论