selamiphp / deployer

Deployer Tasks & Recipes [WIP]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deployer Tasks & Recipes

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

About

Deployer Tasks & Recipes [WIP]


Languages

Language:PHP 100.0%