来源 https://github.com/edx/configuration/wiki/edX-Managing-the-Full-Stack

Use the /edx/bin/update to update repo versions on the server.

Allowed repo names [edx-platform, xqueue, cs_comments_service, xserver, ease, edx-ora, configuration, read-only-certificate-code]

Examples:

  • sudo /edx/bin/update edx-platform master – change edx-platform to use the latest on the master branch
  • sudo /edx/bin/update cs_comments_service master – change the forums service to use the latest on the master branch

升级环境:

edx-configuration: release

edx-platform:release0505

others:release-birch

升级过程

本次升级将edx-platform从0505升级到0518。由于升级版本的不同,不保证别的升级会和本次升级一样。

  1. 设置http 代理
    https://github.com/edx/configuration/wiki/edX-proxy-instructions,按照这篇文档设置http代理。代理必须在国外且保证速度稳定可靠。
    如何在ubuntu服务器安装代理可见http://www.cnblogs.com/misoag/archive/2013/02/04/2891636.html。

  2. 升级
    sudo /edx/bin/update edx-platform release-2015-05-18
    升级一次成功,没有错误。升级脚本品质提升了:)

  3. 系统登录方式没变,查看 /etc/ssh/sshd-conf <code># Change to no to disable tunnelled clear text passwords PasswordAuthentication yes</code>

  4. 系统配置都恢复为默认
    lms.env.json cms.env.json 中的配置都丢失了

需要做的升级后步骤

  1. 更新下载语言包
  2. 重新设置lms cms json,包括站点名称 语言 邮件 sysadmin特性

优化

更新前可以修改 /edx/app/edx_ansible/edx_ansible/playbooks/roles/edxapp/defaults/main.yml  来进行变量预定义。