selami/deployer-recipes

This package is abandoned and no longer maintained. No replacement package was suggested.

3rd party deployer recipes

0.2.1 2017-09-21 07:00 UTC

This package is auto-updated.

Last update: 2021-12-17 05:53:03 UTC


README

Requirements

Installation

composer require selami/deployer-recipes

Added tasks

project
  project:fix-rights           Fix permissions
  project:generate-deploy-key  Generate deploy key
  project:get-deploy-key       Get deploy key
  
 ubuntu
  ubuntu:add-user              Add new user, set authorized_keys as same as root's and set permissions
  ubuntu:install-nginx         Install Nginx
  ubuntu:install-php71         Install php71-fpm and composer using ppa:ondrej/php
  ubuntu:private-ip            Get private IP addresses
  ubuntu:real-ip               Get real IP addresses
  ubuntu:reboot                Reboot server
  ubuntu:service-restart       Restart service. --service input option is required
  ubuntu:update                Update, upgrade, and autoremove Ubuntu packages 

Usage

  1. Init your deployer project
vendor/bin/dep init
  1. Add tasks and recipes to your deploy.php created by 'dep init'
<?php

require_once 'deployer_tasks/tasks.php';
require_once 'deployer_recipes/recipes.php';
  1. Run your command
vendor/bin/dep ubuntu:private-ip stage/production