Skip to content

Commit

Permalink
test deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeig committed Dec 9, 2024
1 parent 0bb803d commit 0e60eec
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
}
},
"require-dev": {
"deployer/deployer": "^7.5",
"friendsofphp/php-cs-fixer": "^3.58",
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "6.4.*",
Expand Down
60 changes: 57 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions deploy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace Deployer;

require 'recipe/symfony.php';

// Config

set('repository', '[email protected]:GoteoFoundation/v4.git');

add('shared_files', []);
add('shared_dirs', []);
add('writable_dirs', []);

// Hosts

host('v4.goteo.org')
->set('remote_user', 'deployer')
->set('deploy_path', '~/v4')
->set('dotenv_example', '.env.prod')
->set('console_options', '--env=prod')
->set('composer_options', '--verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader --no-scripts');


// Hooks

after('deploy:failed', 'deploy:unlock');

0 comments on commit 0e60eec

Please sign in to comment.