创建分期环境

阅读(21) 最后更新: 2019年1月17日 06:11

上一页 服务器和模块更新 | 更新Odoo源代码 下一页

翻译进度 100%

自助翻译

使用createdb命令可以更快地复制数据库,$createdb-Owner=Odoo-Template=Odoo-prod Odoo阶段。这里的警告是,如果要运行数据库,就不能有到Odo-prod数据库的任何开放连接,因此需要停止Odoo生产服务器。
A database copy can be made in a much faster way using the createdb command, $ createdb --owner=odoo --template=odoo-prod odoo-stage.The caveat here is that, for it to run, there can't be any open connections to the odoo-prod database, so the Odoo production server needs to be stopped.
这里需要的具体步骤取决于您的设置,但它们很可能可以由脚本实现自动化,记住psql命令可以用于直接从命令行运行SQL,例如psql-d Odoo-Stage-c“。
The specific steps needed here depend on your setup, but it's likely they can be automated by a script.Remember that the psql command can be used to run SQL directly from the command line, such as psql -d odoo-stage -c " ".
如果您正确地遵循了源代码部分中描述的安装方法,那么现在应该可以在暂存库中获取和测试新版本的源代码。强烈建议您制作生产数据库的副本并对其进行任何升级测试。如果Odoo-prod是您的生产数据库,可以使用以下命令创建Odoo阶段的副本:$Drodb Odoo Stage$createdb-Owner=Odoo-Stage$pg_dump odoo-prod psql-d odoo阶段$sudo su odoo$cd~/.local/share/odoo/filestore/$cp-al Odoo-prod Odoo-Stage#Create filestore在我们可以使用前面的数据库副本之前,应该进行清理,例如禁用计划的操作和电子邮件服务器(用于发送和获取消息)。
If you have followed the approach described in the Installing from the source code section correctly, you should now be able to fetch and test new versions of source code in the staging repository.It's strongly advised that you make a copy of the production database and test any upgrades on it.If odoo-prod is your production database, an odoo-stage copy can be created with the following commands: $ dropdb odoo-stage $ createdb --owner=odoo odoo-stage $ pg_dump odoo-prod | psql -d odoo-stage $ sudo su odoo $ cd ~/.local/share/Odoo/filestore/ $ cp -al odoo-prod odoo-stage # create filestore hardlinks $ exit Before we can use the preceding copy of the database, cleanup should be done, such as deactivating scheduled actions, and email servers (both for sending and fetching messages).

odoo技术交流2 群号 625337975

http://www.odoogo.com/post/58/Odoo开发视频教程

文档不断更新中,添加微信odoogo,获取最新视频课程和模块

留言提问