cravler/remote-bundle

安装: 215

依赖项: 1

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master 2015-04-01 12:18 UTC

This package is auto-updated.

Last update: 2024-09-06 08:28:48 UTC


README

安装

步骤 1: 通过运行以下命令更新您的供应商

$ php composer.phar require cravler/remote-bundle:@dev

步骤2: 启用此包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Cravler\RemoteBundle\CravlerRemoteBundle(),
    );
}

步骤3: 路由

// app/config/routing.yml

cravler_remote:
    resource: "@CravlerRemoteBundle/Resources/config/routing.xml"

步骤4: 安装 node_modules

npm install --prefix vendor/cravler/remote-bundle/Cravler/RemoteBundle/Resources/nodejs

配置

该包的默认配置如下

cravler_remote:
    user_provider: ~
    app_port: 8080
    remote_port: 8081
    server_port: 8082
    secret: ThisTokenIsNotSoSecretChangeIt

生成 ubuntu upstart 命令

sudo bash -c "app/console cravler:remote:ubuntu:upstart server > /etc/init/cravler-remote-server.conf"
sudo bash -c "app/console cravler:remote:ubuntu:upstart app > /etc/init/cravler-remote-app.conf"

使用示例

CravlerChatBundle

许可证

此包采用 MIT 许可证。请参阅包中的完整许可证。

LICENSE