FPM+SVN配置Walle自动化部署系统详解(3)

*** applying m151018_032238_support_svn
    > rename column git_url in table project to repo_url ... done (time: 0.040s)
    > rename column git_type in table project to repo_mode ... done (time: 0.016s)
    > alter column repo_mode in table project to string(50) DEFAULT "branch" COMMENT "上线方式:branch/tag" AFTER repo_url ... done (time: 0.015s)
    > add column repo_type string(10) DEFAULT "git" COMMENT "上线方式:git/svn" AFTER repo_mode to table project ... done (time: 0.014s)
    > add column repo_username string(50) DEFAULT "" COMMENT "版本管理系统的用户名,一般为svn的用户名" AFTER repo_url to table project ... done (time: 0.013s)
    > add column repo_password string(100) DEFAULT "" COMMENT "版本管理系统的密码,一般为svn的密码" AFTER repo_username to table project ... done (time: 0.037s)
    > add column file_list text COMMENT "文件列表,svn上线方式可能会产生" to table task ... done (time: 0.009s)
    > alter column commit_id in table task to string(100) DEFAULT "" COMMENT "git commit id" ... done (time: 0.010s)
*** applied m151018_032238_support_svn (time: 0.159s)

*** applying m151027_063246_keep_version_num
    > add column keep_version_num integer(3) NOT NULL DEFAULT 20 COMMENT "线上版本保留数" AFTER audit to table project ... done (time: 0.012s)
    > add column enable_rollback integer(1) NOT NULL DEFAULT 1 COMMENT "能否回滚此版本:0no 1yes" to table task ... done (time: 0.011s)
*** applied m151027_063246_keep_version_num (time: 0.030s)

*** applying m160307_082032_ansible
    > add column ansible smallint(3) NOT NULL DEFAULT 0 COMMENT "是否启用Ansible 0关闭,1开启" AFTER audit to table project ... done (time: 0.038s)
*** applied m160307_082032_ansible (time: 0.059s)

*** applying m160402_173643_add_post_release_delay
    > add column post_release_delay integer(11) NOT NULL DEFAULT 0 COMMENT "每台目标机执行post_release任务间隔/延迟时间 单位:秒" AFTER post_release to table project ... done (time: 0.010s)
*** applied m160402_173643_add_post_release_delay (time: 0.015s)

*** applying m160418_035413_user_status_migrate
    > alter column role in table {{%user}} to smallint(6) NOT NULL DEFAULT 1 ... done (time: 0.005s)
    > alter column status in table {{%user}} to smallint(6) NOT NULL DEFAULT 1 ... done (time: 0.003s)
    > update {{%user}} ... done (time: 0.006s)
    > update {{%user}} ... done (time: 0.002s)
    > update {{%user}} ... done (time: 0.002s)
    > update {{%user}} ... done (time: 0.003s)
    > update {{%user}} ... done (time: 0.001s)
*** applied m160418_035413_user_status_migrate (time: 0.028s)

*** applying m160420_015223_add_file_transmission_mode
    > alter column created_at in table task to datetime COMMENT "创建时间" AFTER enable_rollback ... done (time: 0.016s)
    > alter column updated_at in table task to datetime COMMENT "修改时间" AFTER created_at ... done (time: 0.052s)
    > add column file_transmission_mode smallint(3) NOT NULL DEFAULT 1 COMMENT "上线文件模式: 1.全量所有文件 2.指定文件列表" AFTER branch to table task ... done (time: 0.039s)
*** applied m160420_015223_add_file_transmission_mode (time: 0.111s)
Migrated up successfully.
--------------------------------------------------------------------------------------

7.配置nginx
刷新页面看到50x或者404均是nginx配置不当,需要查看nginx日志

nginx简单配置

server {
    listen      80;
    server_name  192.168.3.13; # 改你的host
    root /data/www/walle-web/walle-web-master/web; # 根目录为web
    index index.php;

# 建议放内网
    # allow 192.168.0.0/24;
    # deny all;

location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }

location ~ \.php$ {
        try_files $uri = 404;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}
8.访问地址:

当然,可能你配置nginx时的server_name是walle.chinasoft.com时,配置本地hosts之后,直接访问:walle.chinasoft.com亦可。
管理员默认账户密码都为:
admin

FPM+SVN配置Walle自动化部署系统详解

至此walle系统的部署告一段落

walle系统的使用:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/a69c4429f98373f336c9fdd5b068871b.html