Code Monkey home page Code Monkey logo

example-deployer-slim's Introduction

Introduction

Join the chat at https://gitter.im/oanhnn/deployer-example

An example for use Deployer to deployment PHP project.
In this example, i'm will deploy a project using Slim framework follow my slim-skeleton

See http://deployer.org for more information and documentation about Deployer.

Requirements

  • PHP 5.6.0 and up.

That's all!

If PHP 5.4.x or 5.5.x, please using branch 3.x (using Deployer 3.x)

You can install ssh2 extension to speedup deployment process and enable sockets for parallel deployment.

Installation

Clone with git and run composer install

$ git clone [email protected]:oanhnn/deployer-example.git <target-directory>
$ cd <target-directory>
$ composer install

or using composer

$ composer create-project oanhnn/deployer-example <target-directory>

Usage

In this example using forward agent feature, to run it, please enable ssh forward agent the first. If using ssh2 extension, please require package "herzult/php-ssh": "~1.0" and add line set('ssh_type', 'ext-ssh2'); to deploy.php file before deployment. If using native ssh client, please add line set('ssh_type', 'native'); to deploy.php file before deployment.

Customize stage/dev.php or make a copy and write your own stages.

First deployment:

$ bin/dep deploy:configure <stage>
$ bin/dep deploy <stage>

Next deployments:

$ bin/dep deploy <stage>

Using options -vvv for debug

$ bin/dep deploy <stage> -vvv

Contributing

All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send a pull request.

To ensure a consistent code base, you should make sure the code follows the PSR-1.

If you would like to help take a look at the list of issues.

License

This project is released under the MIT License.
Copyright © 2015-2017 Oanh Nguyen.
Please see License File for more information.

example-deployer-slim's People

Contributors

darynmitchell avatar dependabot[bot] avatar gitter-badger avatar oanhnn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.