设置

概述

这些设置允许您管理项目的配置。

../../../_images/interface-settings.png

项目名称

项目的名称。

../../../_images/interface-settings-projectname.png

这将定义将用于访问生产数据库的地址。

暂存和开发版本的地址派生自此名称并自动分配。但是,当您更改项目名称时,只有将来的生成将使用新名称。

合作者

管理可以访问您的项目的 Github 用户。

../../../_images/interface-settings-collaborators.png

There are three levels of users:

  • Admin: has access to all features of an Odoo.sh project.

  • Tester: has access to the Staging and Development databases and their tooling. This role is for users conducting User Acceptance Tests. Testers can work with copies of production data but cannot access the production database through the Odoo.sh tooling.

  • Developer: has access only to the Development databases and their tooling. This role is for developers who propose code modifications but are not allowed to access production and staging databases through the Odoo.sh tooling.

开发者

测试人

管理员

开发

历史

一键连接

日志

Shell/SSH

邮件

设置

暂存

历史

一键连接

日志

Shell/SSH

邮件

监控

备份

升级

设置

生产

历史

一键连接

日志

Shell/SSH

邮件

监控

备份

升级

设置

状态

设置

警告

Those roles only apply to the usage of Odoo.sh. It is important to reflect the user roles attribution within the repository on GitHub. Please refer to the GitHub documentation section on Managing a branch protection rule for detailed guidance.

公共访问

允许对开发版本进行公共访问。

../../../_images/interface-settings-public.png

If activated, this option exposes the Builds page publicly, allowing visitors to view logs of development builds.

生产和过渡版本被排除在外,访问者只能看到他们的状态。

自定义域

要配置其他域,请参阅相应分支的 :ref:’settings 选项卡 <odoosh-gettingstarted-branches-tabs-settings>’。</odoosh-gettingstarted-branches-tabs-settings>

子模块

为在分支中用作子模块的私有仓库配置部署密钥,以允许 Odoo.sh 下载它们。

警告

仅对于“私有仓库”,这些设置是必需的。如果您正在研究如何设置子模块,请参阅本文档的章节:ref:Submodules <odoosh-advanced-submodules>

../../../_images/interface-settings-submodules.png

当存储库是私有的时,无法公开下载其分支和修订版。因此,您需要为 Odoo.sh 配置部署密钥,以便远程 Git 服务器允许我们的平台下载此私有存储库的修订版。

要为私有存储库配置部署密钥,请按以下步骤操作:

  • 在输入中,粘贴私有子存储库的 SSH URL,然后单击“*添加”,

    • 例如 git@github.com:USERNAME/REPOSITORY.git

    • 它可以是Github以外的另一个Git服务器,例如Bitbucket,Gitlab甚至您自己的自托管服务器

  • 复制公钥,

    • 它应该看起来像*ssh-rsa一些…随机。。。字符。。。这里…==*

  • 在私有子存储库的设置中,在部署密钥之间添加公钥。

    • Github.com: :menuselection:Settings --> Deploy key --> Add deploy key

    • Bitbucket.com: :菜单选择:“设置 –> 访问键 –> 添加键`

    • Gitlab.com: :菜单选择:设置 -->存储库 -->部署密钥

    • 自托管:将密钥附加到 git 用户的 authorized_keys 文件在其 .ssh 目录中

存储大小

本部分显示项目使用的存储大小。

../../../_images/interface-settings-storage.png

存储大小的计算方法如下:

  • PostgreSQL 数据库的大小

  • 容器中可用磁盘文件的大小:数据库文件存储、会话存储目录…

警告

如果要分析磁盘使用情况,可以在 Web Shell 中运行工具“ncdu <https://dev.yorhel.nl/ncdu/man>”。。

如果生产数据库大小增长到超过订阅中预配的大小,它将自动与订阅同步。

数据库工作线程

可以在此处配置其他数据库工作线程。更多的工作人员有助于增加生产数据库能够处理的负载。如果添加更多,它将自动与你的订阅同步。

../../../_images/interface-settings-workers.png

警告

增加更多的工作人员并不能神奇地解决所有性能问题。它只允许服务器同时处理更多连接。如果某些操作异常缓慢,则很可能是代码有问题,如果不是由于您自己的自定义,则可以打开工单“这里<https://www.odoo.com/help>”_。

暂存分支

其他暂存分支允许您同时开发和测试更多功能。如果添加更多,它将自动与你的订阅同步。

../../../_images/interface-settings-staging-branches.png

启用

显示项目激活的状态。如果需要,您可以更改项目的激活码。

../../../_images/interface-settings-activation.png