转载 .htaccess文件RewriteRule语法规则
摘要:禁止访问指定文件: <FilesMatch ".(htaccess|gitattributes|gitignore)$">order allow,denydeny from all</FilesMatch> <Files .env> order allow,deny deny from all</F
阅读全文
posted @
2017-10-13 20:23
风小可
阅读(229)
推荐(0)
容器日志报错:DocumentRoot must be a directory
摘要:启动容器时候报错:T07:23:27.307940671Z AH00526: Syntax error on line 38 of /etc/apache2/apache2.conf:T07:23:27.307992612Z DocumentRoot must be a directoryT07:2
阅读全文
posted @
2017-10-13 15:57
风小可
阅读(646)
推荐(0)
linux服务器ssh密钥部署
摘要:1,服务器上面新增一个用户名,专门用于cap部署:adduser deployer 2,主机网站目录挂载到容器中相同路径。修改主机目录权限:chmod 0755 /website/web 3,更改目录的所有者和用户组:chown -R deployer:deployer web 4,在deploye
阅读全文
posted @
2017-10-13 15:53
风小可
阅读(400)
推荐(0)
Capistrano部署报错SSHKit::Runner::ExecuteError: Exception while executing
摘要:解决方法: 在服务器端安装git,cap部署后会自动在目录下创建几个文件夹: 报错内容: $ cap product deploy(Backtrace restricted to imported tasks)cap aborted!SSHKit::Runner::ExecuteError: Exc
阅读全文
posted @
2017-10-13 14:43
风小可
阅读(534)
推荐(0)
centos7下git安装及使用(Capistrano发布到服务器需先安装git)
摘要:1.查看系统是否已经安装git git --version 2.CentOS7 yum 安装git yum install git
阅读全文
posted @
2017-10-13 14:43
风小可
阅读(221)
推荐(0)