netgusto / devserver-bundle
支持子域名的开发服务器控制台命令,自动编译资源。
1.2.0
2014-10-17 15:52 UTC
Requires
- php: >=5.3.3
- symfony/framework-bundle: ~2.4
This package is not auto-updated.
Last update: 2024-09-28 18:21:13 UTC
README
安装
在 composer.json
"require": { "netgusto/devserver-bundle": "dev-master" }
在 app/AppKernel.php
$bundles = array( # [...] new Netgusto\DevServerBundle\NetgustoDevServerBundle(), # [...] );
配置
在 app/config.yml
netgusto_dev_server: tasks: - { command: php app/console server:run 0.0.0.0:8000 } - { command: php app/console assetic:dump --watch } - { command: ember serve, path: web/apps/calclient }
使用
php app/console server:dev