Skip to content

narutolee/githook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

git-hook

与git有关的webhook

update.php

用来同步gitlab和测试机上的代码,由于update.php中用到了shell_exec执行shell命令,所以需要对server端做一些配置:

  • 保证php.ini能执行shell_exec函数,简单粗暴的做法就是修改/etc/php.ini中的配置,注释掉disable_functionsafe_modeOff
  • 保证有权限执行sudo命令,修改/etc/sudoers加入%apache ALL=(ALL) NOPASSWD: ALL

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages