php-deployer

How to log deployments in Deployer?

时间秒杀一切 提交于 2020-03-05 03:03:59
问题 I'm using Deployer and enjoy it. One thing I haven't figured out how to do yet though is write a log file of my deployments. I'm attempting to append the commit hash and date to revisions.txt: task('log_the_deployment', function () {//https://stackoverflow.com/a/4546755/470749 $selectedStage = Deployer::get()->getInput()->getArgument('stage'); //https://github.com/deployphp/deployer/blob/6180366acff3ca5b2ec511a84e671321c02e7af1/recipe/config/hosts.php#L15 runLocally('set -e'); //https:/

How to use Deployer with Docker (Laradock)

倖福魔咒の 提交于 2019-12-10 10:27:11
问题 I created a fresh Digital Ocean server with Docker on it (using Laradock) and got my Laravel website working well. Now I want to automate my deployments using Deployer. I think my only problem is that I can't get Deployer to run docker exec -it $(docker-compose ps -q php-fpm) bash; , which is the command I successfully manually use to enter the appropriate Docker container (after using SSH to connect from my local machine to the Digital Ocean server). When Deployer tries to run it, I get this

How to use Deployer with Docker (Laradock)

青春壹個敷衍的年華 提交于 2019-12-06 05:07:51
I created a fresh Digital Ocean server with Docker on it (using Laradock ) and got my Laravel website working well. Now I want to automate my deployments using Deployer . I think my only problem is that I can't get Deployer to run docker exec -it $(docker-compose ps -q php-fpm) bash; , which is the command I successfully manually use to enter the appropriate Docker container (after using SSH to connect from my local machine to the Digital Ocean server). When Deployer tries to run it, I get this error message: ➤ Executing task execphpfpm [1.5.6.6] > cd /root/laradock && (pwd;) [1.5.6.6] < /root