mekras/pomander-symfony

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

Pomander plugin to deploy and manage Symfony sites

This package has no released version yet, and little information is available.


README

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

Latest Stable Version License Build Status Coverage Status

Based on pomander-symfony2 by Léo POIROUX.

Install

$ composer require mekras/pomander-symfony:^1.00

Getting Started

  • vendor/bin/pom init

Modify your development.php

<?php

$env->load('Symfony');

$env->symfony([
    'env' => 'dev',
    'debug' => true, // Optional. Symfony debug mode on/off.
    'version' => '2.7.0',
    /* Choosing tasks to run */
    'task' => [
        'permissions' => true,
        'parameters' => true,
        'composer' => true,
        'clear' => true,
        'assets' => true,
        'migrate' => false,
        'assetic' => true
    ],
    'parameters' => [
        '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'
    ],
    /* Assetic settings */
    'assetic' => [
        // Fork assetic:dump across many processes (requires kriswallsmith/spork)
        'forks' => 3
    ],
    /* Composer settings */
    'composer' => [
        // Pass "--no-dev" option to composer. 
        'no-dev' => true,
        // Pass "--prefer-dist" option to composer. 
        'prefer-dist' => true
    ]
]);

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

Commit and push the Symfony Standard Edition downloaded

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

Done!

Tasks

  • symfony:composer --- install dependencies via Composer.
  • symfony:download --- download Symfony distrib and unpack it into your project.
  • symfony:deploy --- deploy your Symfony based project in environment.
  • symfony:clear --- clear and warmup cache.
  • symfony:migrate --- Run Doctrine migrations.
  • symfony:assets --- Install assets.
  • symfony:assetic --- Assetic dump.