digipolisgent/robo-digipolis-laravel

Laravel站点的基本部署流程。

安装次数: 2,089

依赖: 0

建议者: 0

安全: 0

星星: 1

关注者: 3

分支: 0

开放问题: 0

类型:robo-tasks

3.0.7 2024-03-27 14:50 UTC

README

Latest Stable Version Latest Unstable Version Total Downloads License

Build Status Maintainability Test Coverage PHP 7 ready

由digipolis使用,作为示例。

此包包含一个RoboFileBase类,可用于您的RoboFile。所有命令都可以通过覆盖父方法来重写。

示例

<?php

use DigipolisGent\Robo\Laravel\RoboFileBase;

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

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

可用命令

按照上述示例,以下命令将可用

digipolis:backup-laravel           Create a backup of files (storage folder) and database.
digipolis:build-laravel            Build a Laravel 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-laravel           Build a Laravel site and push it to the servers.
digipolis:download-backup-laravel  Download a backup of files (storage folder) and database.
digipolis:init-laravel-remote      Install or update a Laravel remote site.
digipolis:install-laravel          Install the Laravel site in the current folder.
digipolis:package-project
digipolis:push-package             Command digipolis:push-package.
digipolis:restore-backup-laravel   Restore a backup of files (storage folder) and database.
digipolis:switch-previous          Switch the current release symlink to the previous release.
digipolis:sync-laravel             Sync the database and files between two Laravel sites.
digipolis:theme-clean
digipolis:theme-compile
digipolis:update-laravel           Executes database updates of the Laravel site in the current folder.
digipolis:upload-backup-laravel    Upload a backup of files (storage folder) and database to a server.