latest beta with new yml: host not found / use set in yml #2585
Unanswered
jasperf
asked this question in
Help needed
Replies: 3 comments
-
I think set is just part of config so adjusted import:
- recipe/laravel.php
- contrib/php-fpm.php
- contrib/npm.php
config:
application: 'domain'
repository: '[email protected]:me/domain-v3.git'
php_fpm_version: '7.4'
keep_releases: '10'
shared_files:
- '.env'
- '.name_private_key'
shared_dirs:
- 'public/uploads'
- 'public/published'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
writable_dirs:
- 'public/uploads',
- 'public/published',
- 'storage/framework/cache/data',
- 'storage/logs',
- 'storage/tls',
- 'storage/app/public',
- 'storage/app/modules',
hosts:
prod:
remote_user: forge
hostname: 'domain.com'
deploy_path: '~/{{hostname}}'
staging:
remote_user: forge
hostname: 'staging.domain.com'
deploy_path: '~/{{hostname}}'
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:migrate
- npm:install
- npm:run:prod
- deploy:publish
- php-fpm:reload
npm:run:prod:
script:
- 'cd {{release_or_current_path}} && npm run prod'
after:
deploy:failed: deploy:unlock
queue: restart
artisan: horizon:terminate
still cannot run |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hmmm, |
Beta Was this translation helpful? Give feedback.
0 replies
-
This version does work with import:
- recipe/laravel.php
- contrib/php-fpm.php
- contrib/npm.php
config:
application: 'domain'
repository: '[email protected]:jasperf/domain-v3.git'
php_fpm_version: '7.4'
keep_releases: '10'
shared_files:
- '.env'
- '.transip_private_key'
shared_dirs:
- 'public/uploads'
- 'public/published'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
writable_dirs:
- 'public/uploads'
- 'public/published'
- 'storage/framework/cache/data'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
hosts:
prod:
remote_user: forge
hostname: 'domain.com'
deploy_path: '~/{{hostname}}'
staging:
remote_user: forge
hostname: 'staging.domain.com'
deploy_path: '~/{{hostname}}'
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:migrate
- npm:install
- npm:run:prod
- deploy:publish
- php-fpm:reload
npm:run:prod:
script:
- 'cd {{release_or_current_path}} && npm run prod'
after:
deploy:
- failed:deploy:unlock
- artisan:horizon:terminate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using this latest yaml file with Deployer 7 beta installed using
composer require deployer/deployer:dev-master
:On doing a shell test I get
Doing a simple ssh I do get in so domain can be located:
when I try host instead of hostname I get the same error. What am I missing here?
Two, how do I use this PHP in the yaml file instead:
Also, initial
dep init
generateddeploy.php
but not adeploy.yml
. Thought it would?Beta Was this translation helpful? Give feedback.
All reactions