【发布时间】:2017-08-14 07:23:59
【问题描述】:
我正在尝试使用 git post-receive 自动部署到我的生产服务器
这是我的脚本
#!/bin/sh
git --work-tree=/var/www/html/cushbu.com --git-dir=/var/repo/site.git checkout -f
echo running composer
composer install -d /var/www/html/cushbu.com
echo finished
但是composer install 命令不起作用还有什么方法可以知道当前执行后脚本的状态??
我无法在命令行中看到running composer 输出
更新
我添加了cd /var/www/html/cushbu.com && composer install,但它不起作用
【问题讨论】:
标签: php git deployment composer-php git-post-receive