fixed envoy

This commit is contained in:
Edward Yang 2022-08-30 15:47:21 +08:00
parent 460a1b846c
commit c9f26d2935
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
/storage/*.key
/storage/installed
/vendor
Envoy.blade.php
.env
.env.backup
.phpunit.result.cache

17
Envoy.blade.example.php Normal file
View File

@ -0,0 +1,17 @@
@servers(['web'=>['root@0.0.0.0']])
@task('dev', ['on'=>'web'])
cd /var/www/docker-beikeshop/www/beikeshop && pwd && git pull
cd /var/www/docker-beikeshop/docker && pwd && docker-compose ps
docker exec beikeshop_com-php8_workspace_1 sh -c "cd beikeshop && composer install"
docker exec beikeshop_com-php8_workspace_1 sh -c "cd beikeshop && php artisan migrate"
docker exec beikeshop_com-php8_workspace_1 sh -c "cd beikeshop && npm install && npm run dev"
@endtask
@task('prod', ['on'=>'web'])
cd /var/www/docker-beikeshop/www/beikeshop && pwd && git pull
cd /var/www/docker-beikeshop/docker && pwd && docker-compose ps
docker exec beikeshop_com-php8_workspace_1 sh -c "cd beikeshop && composer install"
docker exec beikeshop_com-php8_workspace_1 sh -c "cd beikeshop && php artisan migrate"
docker exec beikeshop_com-php8_workspace_1 sh -c "cd beikeshop && npm install && npm run prod"
@endtask