承接 strontium/symfony-vagrant 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

strontium/symfony-vagrant

Composer 安装命令:

composer require strontium/symfony-vagrant

包简介

Helpers for improve Symfony perfomance when working under Vagrant enviroment

README 文档

README

Helpers for improve Symfony 2 performance when working under Vagrant environment.

Using Symfony2 inside Vagrant can be slow due to synchronisation delay incurred by NFS. To avoid this, both locations have been moved to a shared memory segment under /dev/shm/%your_app_name%.

To view the application logs, run the following commands:

$ tail -f /dev/shm/%your_app_name%/logs/prod.log
$ tail -f /dev/shm/%your_app_name%/logs/dev.log

Installation

Add to composer.json:

{
    "require": {
        "strontium/symfony-vagrant": "*"
    }
}

Usage

Extend yor Kernel from VagrantAwareKernel:

<?php
// app/AppKernel.php

use Strontium\SymfonyVagrant\Kernel\VagrantAwareKernel;

class AppKernel extends VagrantAwareKernel

If you using PHPStrorm and want to have copy of Symfony cache in your host machine, add next scripts to composer.json:

    "scripts": {
        "post-install-cmd": [
            "Strontium\\SymfonyVagrant\\Composer\\ScriptHandler::cacheWarmupOnVagrant"
        ],
        "post-update-cmd": [
            "Strontium\\SymfonyVagrant\\Composer\\ScriptHandler::cacheWarmupOnVagrant"
        ]
    }

统计信息

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

GitHub 信息

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

其他信息

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