Giter VIP home page Giter VIP logo

pomander-symfony2's Introduction

Symfony2 tasks for use with Pomander

Latest Stable Version

This is a plugin to help fully manage your Symfony2 projects with the help of Pomander.

Pomander is a light-weight flexible deployment tool for deploying web applications. This project was inspired by Capistrano and Vlad the Deployer, as well as being built on top of Phake, a Rake clone.

Install

$ composer require pomander/symfony2:@dev

Usage

  • vendor/bin/pom init if no configuration found.
  • Include plugin in environment config $env->load('Symfony2');
  • vendor/bin/pom -T to see the stuff.

Getting Started

  • vendor/bin/pom init
Modify your development.yml or development.php
<?php

$env->load('Symfony2');

$env->symfony2(array(
	'env' => 'dev',
    'version' => '2.4.0',
    'task' => array(
        'permissions' => true,
        'parameters' => true,
        'composer' => true,
        'clear' => true,
        'assets' => true,
        'migrate' => false,
        'assetic' => false
    ),
    'parameters' => array(
        'database_driver' => 'pdo_mysql',
        'database_host' => '127.0.0.1',
        'database_port' => '~',
        'database_name' => 'symfony',
        'database_user' => 'root',
        'database_password' => '~',
        'mailer_transport' => 'smtp',
        'mailer_host' => '127.0.0.1',
        'mailer_user' => '~',
        'mailer_password' => '~',
        'locale' => 'en',
        'secret' => 'ThisTokenIsNotSoSecretChangeIt'
    )
));

$env->repository('set your repository location here')
    ->deploy_to('set your application location on server')
;
  • vendor/bin/pom symfony2:setup

Commit and push the Symfony Standard Edition downloaded

  • vendor/bin/pom deploy:setup
  • vendor/bin/pom symfony2:deploy

Done!

Tasks

  • vendor/bin/pom -T
config                  Create development environment configuration
db:backup               Perform a backup suited for merging.
db:create               Create database.
db:destroy              Wipe database.
db:full                 Perform a full database backup.
db:merge                Merge a backup into environment.
deploy:cold             First time deployment.
deploy:setup            Setup application in environment.
deploy:update           Update code to latest changes.
init                    Set it up
rollback                Rollback to the previous release
symfony2:assetic        Assetic dump
symfony2:assets         Assets install
symfony2:clear          Clear and Warmup cache
symfony2:composer       Run "composer install"
symfony2:deploy         Deploy Symfony2 in environment.
symfony2:migrate        Doctrine migrate
symfony2:permissions    Setting up Permissions
symfony2:setup          Installation of Symfony2 in environment.

pomander-symfony2's People

Contributors

leopoiroux avatar mekras avatar

Stargazers

 avatar  avatar  avatar  avatar  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.