dev-master
9999999-dev
MIT
The Requires
- symfony/framework-bundle ~2.3
- php >=5.4.0
- cravler/dnode ~0.2.0
by Sergei Vizel
symfony remote sockets websockets node.js
``` bash $ php composer.phar require cravler/remote-bundle:@dev, (*1)
### Step2: Enable the bundle ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Cravler\RemoteBundle\CravlerRemoteBundle(), ); }
``` yaml // app/config/routing.yml, (*2)
cravler_remote: resource: "@CravlerRemoteBundle/Resources/config/routing.xml", (*3)
### Step4: Install node_modules ``` bash npm install --prefix vendor/cravler/remote-bundle/Cravler/RemoteBundle/Resources/nodejs
The default configuration for the bundle looks like this:, (*4)
``` yaml cravler_remote: user_provider: ~ app_port: 8080 remote_port: 8081 server_port: 8082 secret: ThisTokenIsNotSoSecretChangeIt, (*5)
## Generate ubuntu upstart commands ``` bash 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, (*6)
This bundle is under the MIT license. See the complete license in the bundle:, (*7)
LICENSE
MIT
symfony remote sockets websockets node.js