performer/vagrant 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

performer/vagrant

最新稳定版本:1.0.0

Composer 安装命令:

composer require performer/vagrant

包简介

Vagrant PHPStorm Command Line Tools Console

README 文档

README

Symfony bundle -> Contain vagrant commands + Symfony and Doctrine Commands executed directly in "vagrant ssh --command 'bin/console some:command' "

Composer

Enable the Bundle in AppKernel.php

"require": {
        ...
        "performer/vagrant": "dev-master"
    }
// app/AppKernel.php
// use ...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Performer\VagrantBundle\PerformerVagrantBundle(),
        );

        // ...
    }

    // ...
}

Use PHPStorm

Settings -> Command Line Tools Console -> + (new command) -> Choose Tool (Tool based on Symfony Console) -> Alias (v) -> Path to script (bin/vagrant)

Configuration example

You can configure default query parameter names and templates

performer_vagrant:
    defaults:
        remote_php_interpreter: /usr/bin/php
        remote_site_dir: /var/www
        remote_symfony_console: /bin/console
    users:
        remote_commands: ['Vendor\Path\Command', ... ]

Command example

vagrant ssh --command '/usr/bin/php /var/www/bin/console cache:clear --env=dev'

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-30