emroni/deployer

There is no license information available for the latest version (1.0.4) of this package.

Deployer recipes

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Installs: 530

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/emroni/deployer

1.0.4 2018-12-11 08:47 UTC

This package is auto-updated.

Last update: 2026-01-12 06:36:48 UTC


README

Installation

First require with composer

composer require emroni/deployer

Then include at the top of your deploy.php file

require __DIR__ . '/vendor/emroni/deployer/recipe/symfony4.php';

Tasks

database:backup

Creates a backup on the server.

  • Grabs the servers database info from {{deploy_path}}/current/.env
  • Dumps the database to {{deploy_path}}/current/var/database/[database]_[date][time].sql

database:restore

Restores the last backup to the servers database

  • Grabs the last backup
  • Drops all tables of the servers database
  • Imports backup file

database:download

Downloads the last backup from the server

  • Grabs the last backup on the server
  • Downloads the backup file to /var/database/[name].sql

database:pull

Downloads the last backup from the server and imports locally

  • Grabs the last backup on the server
  • Downloads the backup file to /var/database/[name].sql
  • Grabs the local database info from /.env
  • Drops all tables
  • Imports backup file