init deployer
This commit is contained in:
parent
3528a2b81b
commit
b5d7281d77
2 changed files with 61 additions and 21 deletions
42
composer.lock
generated
42
composer.lock
generated
|
@ -6955,16 +6955,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfonycasts/reset-password-bundle",
|
"name": "symfonycasts/reset-password-bundle",
|
||||||
"version": "v1.7.0",
|
"version": "v1.8.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/SymfonyCasts/reset-password-bundle.git",
|
"url": "https://github.com/SymfonyCasts/reset-password-bundle.git",
|
||||||
"reference": "368a4f64fc4f8174234fc91f9b22d5016257211b"
|
"reference": "a41cceff06039e586619b1505af05f77b22b41b5"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/SymfonyCasts/reset-password-bundle/zipball/368a4f64fc4f8174234fc91f9b22d5016257211b",
|
"url": "https://api.github.com/repos/SymfonyCasts/reset-password-bundle/zipball/a41cceff06039e586619b1505af05f77b22b41b5",
|
||||||
"reference": "368a4f64fc4f8174234fc91f9b22d5016257211b",
|
"reference": "a41cceff06039e586619b1505af05f77b22b41b5",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -6982,7 +6982,7 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/doctrine-bundle": "^2.0.3",
|
"doctrine/doctrine-bundle": "^2.0.3",
|
||||||
"doctrine/orm": "^2.7",
|
"doctrine/orm": "^2.7",
|
||||||
"friendsofphp/php-cs-fixer": "^2.17",
|
"friendsofphp/php-cs-fixer": "^3.0",
|
||||||
"symfony/framework-bundle": "^4.4 | ^5.0",
|
"symfony/framework-bundle": "^4.4 | ^5.0",
|
||||||
"symfony/phpunit-bridge": "^5.0",
|
"symfony/phpunit-bridge": "^5.0",
|
||||||
"vimeo/psalm": "^4.3"
|
"vimeo/psalm": "^4.3"
|
||||||
|
@ -7000,22 +7000,22 @@
|
||||||
"description": "Symfony bundle that adds password reset functionality.",
|
"description": "Symfony bundle that adds password reset functionality.",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/SymfonyCasts/reset-password-bundle/issues",
|
"issues": "https://github.com/SymfonyCasts/reset-password-bundle/issues",
|
||||||
"source": "https://github.com/SymfonyCasts/reset-password-bundle/tree/v1.7.0"
|
"source": "https://github.com/SymfonyCasts/reset-password-bundle/tree/v1.8.0"
|
||||||
},
|
},
|
||||||
"time": "2021-04-12T17:29:47+00:00"
|
"time": "2021-05-05T18:21:50+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfonycasts/verify-email-bundle",
|
"name": "symfonycasts/verify-email-bundle",
|
||||||
"version": "v1.4.0",
|
"version": "v1.5.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/SymfonyCasts/verify-email-bundle.git",
|
"url": "https://github.com/SymfonyCasts/verify-email-bundle.git",
|
||||||
"reference": "3935f7375b2fa795f349bb4281ba8bcb754f4c91"
|
"reference": "8c21aa9aa6b7123afed213e72485e8dad75e5dcf"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/SymfonyCasts/verify-email-bundle/zipball/3935f7375b2fa795f349bb4281ba8bcb754f4c91",
|
"url": "https://api.github.com/repos/SymfonyCasts/verify-email-bundle/zipball/8c21aa9aa6b7123afed213e72485e8dad75e5dcf",
|
||||||
"reference": "3935f7375b2fa795f349bb4281ba8bcb754f4c91",
|
"reference": "8c21aa9aa6b7123afed213e72485e8dad75e5dcf",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -7032,7 +7032,7 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/orm": "^2.7",
|
"doctrine/orm": "^2.7",
|
||||||
"doctrine/persistence": "^2.0",
|
"doctrine/persistence": "^2.0",
|
||||||
"friendsofphp/php-cs-fixer": "^2.17",
|
"friendsofphp/php-cs-fixer": "^3.0",
|
||||||
"symfony/framework-bundle": "^4.4 | ^5.0",
|
"symfony/framework-bundle": "^4.4 | ^5.0",
|
||||||
"symfony/phpunit-bridge": "^5.0",
|
"symfony/phpunit-bridge": "^5.0",
|
||||||
"vimeo/psalm": "^4.3"
|
"vimeo/psalm": "^4.3"
|
||||||
|
@ -7050,9 +7050,9 @@
|
||||||
"description": "Simple, stylish Email Verification for Symfony",
|
"description": "Simple, stylish Email Verification for Symfony",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/SymfonyCasts/verify-email-bundle/issues",
|
"issues": "https://github.com/SymfonyCasts/verify-email-bundle/issues",
|
||||||
"source": "https://github.com/SymfonyCasts/verify-email-bundle/tree/v1.4.0"
|
"source": "https://github.com/SymfonyCasts/verify-email-bundle/tree/v1.5.0"
|
||||||
},
|
},
|
||||||
"time": "2021-04-12T17:34:34+00:00"
|
"time": "2021-05-05T18:08:21+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "twig/extra-bundle",
|
"name": "twig/extra-bundle",
|
||||||
|
@ -7569,16 +7569,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/maker-bundle",
|
"name": "symfony/maker-bundle",
|
||||||
"version": "v1.30.2",
|
"version": "v1.31.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/maker-bundle.git",
|
"url": "https://github.com/symfony/maker-bundle.git",
|
||||||
"reference": "a395a85aa4ded6c1fa3da118d60329b64b6c2acd"
|
"reference": "d01a475fb9a96a46d0c75dbc7fae6eb9a8c85ddb"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/maker-bundle/zipball/a395a85aa4ded6c1fa3da118d60329b64b6c2acd",
|
"url": "https://api.github.com/repos/symfony/maker-bundle/zipball/d01a475fb9a96a46d0c75dbc7fae6eb9a8c85ddb",
|
||||||
"reference": "a395a85aa4ded6c1fa3da118d60329b64b6c2acd",
|
"reference": "d01a475fb9a96a46d0c75dbc7fae6eb9a8c85ddb",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -7598,7 +7598,7 @@
|
||||||
"composer/semver": "^3.0@dev",
|
"composer/semver": "^3.0@dev",
|
||||||
"doctrine/doctrine-bundle": "^1.8|^2.0",
|
"doctrine/doctrine-bundle": "^1.8|^2.0",
|
||||||
"doctrine/orm": "^2.3",
|
"doctrine/orm": "^2.3",
|
||||||
"friendsofphp/php-cs-fixer": "^2.8",
|
"friendsofphp/php-cs-fixer": "^3.0",
|
||||||
"friendsoftwig/twigcs": "^4.1.0|^5.0.0",
|
"friendsoftwig/twigcs": "^4.1.0|^5.0.0",
|
||||||
"symfony/http-client": "^4.3|^5.0",
|
"symfony/http-client": "^4.3|^5.0",
|
||||||
"symfony/phpunit-bridge": "^4.3|^5.0",
|
"symfony/phpunit-bridge": "^4.3|^5.0",
|
||||||
|
@ -7637,7 +7637,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/symfony/maker-bundle/issues",
|
"issues": "https://github.com/symfony/maker-bundle/issues",
|
||||||
"source": "https://github.com/symfony/maker-bundle/tree/v1.30.2"
|
"source": "https://github.com/symfony/maker-bundle/tree/v1.31.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -7653,7 +7653,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-03-23T13:53:38+00:00"
|
"time": "2021-05-05T18:41:31+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/phpunit-bridge",
|
"name": "symfony/phpunit-bridge",
|
||||||
|
|
40
deploy.php
Normal file
40
deploy.php
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
<?php
|
||||||
|
namespace Deployer;
|
||||||
|
|
||||||
|
require 'recipe/symfony.php';
|
||||||
|
|
||||||
|
// Project name
|
||||||
|
set('application', 'plant-exchange');
|
||||||
|
|
||||||
|
// Project repository
|
||||||
|
set('repository', 'ssh://git@git.thisfro.ch:222/thisfro/plant-exchange.git');
|
||||||
|
|
||||||
|
// [Optional] Allocate tty for git clone. Default value is false.
|
||||||
|
set('git_tty', true);
|
||||||
|
|
||||||
|
// Shared files/dirs between deploys
|
||||||
|
add('shared_files', []);
|
||||||
|
add('shared_dirs', []);
|
||||||
|
|
||||||
|
// Writable dirs by web server
|
||||||
|
add('writable_dirs', []);
|
||||||
|
|
||||||
|
|
||||||
|
// Hosts
|
||||||
|
|
||||||
|
host('pflaenz.li')
|
||||||
|
->set('deploy_path', '~/{{application}}');
|
||||||
|
|
||||||
|
// Tasks
|
||||||
|
|
||||||
|
task('build', function () {
|
||||||
|
run('cd {{release_path}} && build');
|
||||||
|
});
|
||||||
|
|
||||||
|
// [Optional] if deploy fails automatically unlock.
|
||||||
|
after('deploy:failed', 'deploy:unlock');
|
||||||
|
|
||||||
|
// Migrate database before symlink new release.
|
||||||
|
|
||||||
|
before('deploy:symlink', 'database:migrate');
|
||||||
|
|
Reference in a new issue