2017 © Pedro Peláez
 

robo-tasks robo-digipolis-symfony

Basic deploy flow for a Symfony site.

image

digipolisgent/robo-digipolis-symfony

Basic deploy flow for a Symfony site.

  • Wednesday, November 29, 2017
  • by zero2one
  • Repository
  • 4 Watchers
  • 0 Stars
  • 334 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 12 Versions
  • 46 % Grown

The README.md

Robo Digipolis Symfony

Latest Stable Version Latest Unstable Version Total Downloads License, (*1)

Build Status Maintainability Test Coverage PHP 7 ready, (*2)

Used by digipolis, serving as an example., (*3)

This package contains a RoboFileBase class that can be used in your own RoboFile. All commands can be overwritten by overwriting the parent method. This class also contains properties ($fileBackupSubDirs and $console) that can be overwritten by your RoboFile., (*4)

Versions

Use version 1.x for Symfony 2 or 3, use 2.x for Symfony 4., (*5)

Properties

$filesBackupDirs

An array of directory paths that will be added to the tar archive when creating a backup of the files. These paths are relative to the filesdir path under the remote key defined in your properties.yml file in your project root. If there is no properties.yml file in your project root, the src/default.properties.yml file in this package will be used. Defaults to ['app', 'framework', 'logs']., (*6)

$console

The path to the symfony console executable, relative to your project root. Defaults to bin/console. If the bin/console file is not found, it defaults to app/console. If you want to modify this path, set it in your RoboFile's constructor (don't forget to call the parent's constructor first)., (*7)

Example

<?php

use DigipolisGent\Robo\Symfony\RoboFileBase;

class RoboFile extends RoboFileBase
{
    use \Robo\Task\Base\loadTasks;

    /**
     * {@inheritdoc}
     */
    public function __construct()
    {
        // Call our parent's constructor first.
        parent::__construct();
        $this->console = 'custom/path/to/console';
    }

    /**
     * @inheritdoc
     */
    public function digipolisDeploySymfony(
        array $arguments,
        $opts = [
            'app' => 'default',
            'worker' => null,
        ]
    ) {
        $collection = parent::digipolisDeploySymfony($arguments, $opts);
        $collection->taskExec('/usr/bin/custom-post-release-script.sh');
        return $collection;
    }
}

Available commands

Following the example above, these commands will be available:, (*8)

digipolis:backup-symfony           Create a backup of files (storage folder) and database.
digipolis:build-symfony            Build a Symfony site and package it.
digipolis:clean-dir                Partially clean directories.
digipolis:clear-op-cache           Command digipolis:database-backup.
digipolis:database-backup          Command digipolis:database-backup.
digipolis:database-restore         Command digipolis:database-restore.
digipolis:deploy-symfony           Build a Symfony site and push it to the servers.
digipolis:download-backup-symfony  Download a backup of files (storage folder) and database.
digipolis:init-symfony-remote      Install or update a Symfony remote site.
digipolis:install-symfony          Install the Symfony site in the current folder.
digipolis:package-project
digipolis:push-package             Command digipolis:push-package.
digipolis:restore-backup-symfony   Restore a backup of files (storage folder) and database.
digipolis:switch-previous          Switch the current release symlink to the previous release.
digipolis:sync-symfony             Sync the database and files between two Symfony sites.
digipolis:theme-clean
digipolis:theme-compile
digipolis:update-symfony           Executes database updates of the Symfony site in the current folder.
digipolis:upload-backup-symfony    Upload a backup of files (storage folder) and database to a server.

The Versions

29/11 2017

dev-master

9999999-dev

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

29/11 2017

0.1.1

0.1.1.0

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

29/11 2017

dev-develop

dev-develop

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

24/05 2017

0.1.0

0.1.0.0

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

28/03 2017

0.1.0-beta1

0.1.0.0-beta1

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

28/03 2017

0.1.0-alpha7

0.1.0.0-alpha7

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

28/03 2017

0.1.0-alpha6

0.1.0.0-alpha6

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

28/03 2017

0.1.0-alpha5

0.1.0.0-alpha5

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

28/03 2017

0.1.0-alpha4

0.1.0.0-alpha4

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

28/03 2017

0.1.0-alpha3

0.1.0.0-alpha3

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

28/03 2017

0.1.0-alpha2

0.1.0.0-alpha2

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts

24/03 2017

0.1.0-alpha1

0.1.0.0-alpha1

Basic deploy flow for a Symfony site.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dieter Blomme
by Jelle Sebreghts