简体   繁体   中英

Laravel 5.1 deployement with Envoy cd: Permission denied

I am trying to deploy my laravel 5.1 with Envoy when I try to run envoy run deploy I get the following error:

cd: /home/spark/: Permission denied

this means deploybot has no permission to access my project folder how can I give deploybot permission?

Thanks in advance for your help!

My envoy.blade.php

@servers( ['production' => 'deploybot@*domainnameplaceholder*' ])

@task('deploy', ['on' => 'production'])
 cd /home/spark/
 php artisan down
 git reset --hard HEAD
 git pull origin master
 php composer.phar dump-autoload
 php artisan migrate --force
 php artisan up
@endtask

The permissions on the /home/spark dir

drwxr-x--- 13 apache    apache    4096 Nov 23 17:57 spark

您应该能够将 deploybot 添加到您的 apache 组。

useradd -G apache deploybot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM