Skip to content

升级v1.0.3至v1.1

sven edited this page Mar 26, 2019 · 1 revision

升级步骤

  1. 下载补丁文件

    https://github.com/gopeak/masterlab/releases/download/v1.1/up_v1.0.3-to-v1.1.zip

  2. 将补丁包的文件覆盖原来的代码

  3. 在数据库中执行补丁包的更新Sql文件

    upgrade\database\up-v1.0.3-to-1.1.sql
    
  4. 修改masterlab_socket服务器的配置文件 bin/config.toml

    # 修改Mysql数据库的连接配置
     [mysql]
         database 	=	"masterlab"   
         host        =   "localhost"
         port		=	"3306"        
         user 		= 	"root"
         password 	= 	""
         charset	    =	"utf8mb4_unicode_ci"
         timeout	    =	"10"
         max_open_conns = 2000
         max_idle_conns = 1000
     
     [object]
         data_type 	= "redis"
         redis_host 	= "127.0.0.1"
         redis_port 	= "6379"
         redis_password = ""
    

    修改masterlab_socket服务器的cron文件 bin/cron.json
    修改 exe_bin 为php的实际路径
    修改 file 为实际的路径路径

    
     {
       "desc": "Project compute",
       "schedule": [
         {
           "name": "ProjectStat 每个半小时执行一次",
           "exe_bin": "/usr/bin/php", 
           "exp": "0 */30 * * * ?",
           "file": "C:/www/masterlab/app/server/timer/project.php",
           "arg": "-f"
         },
         {
           "name": "ProjectReport 每天23点58分执行项目统计",
           "exe_bin": "/usr/bin/php", 
           "exp": "0 58 23 * * ?",
           "file": "C:/www/masterlab/app/server/timer/projectDayReport.php",
           "arg": "-f"
         },
         {
           "name": "SprintReport 每天23点59分执行迭代统计",
           "exe_bin": "/usr/bin/php", 
           "exp": "0 59 23 * * ?",
           "file": "C:/www/masterlab/server/timer/sprintDayReport.php",
           "arg": "-f"
         }
       ]
     }
    

    最后执行 bin/masterlab_socket

  5. good luck ~~

Clone this wiki locally