Skip to content

Commit

Permalink
Migrate to Laravel Echo, migrate to Browserify, add example to .env.e…
Browse files Browse the repository at this point in the history
…xample, add laravel-echo-server.json.example, update paw file
  • Loading branch information
fredsted committed Apr 22, 2018
1 parent f726ba1 commit e03db53
Show file tree
Hide file tree
Showing 14 changed files with 9,224 additions and 508 deletions.
14 changes: 9 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ APP_URL=http://localhost
# Using syslog is recommended when not in development
# APP_LOG=syslog

# Set this for Pusher live reload functionality
PUSHER_KEY=
PUSHER_SECRET=
PUSHER_APP_ID=
PUSHER_CLUSTER=
# Set this for live reload functionality via Pusher
# BROADCAST_DRIVER=redis
# PUSHER_KEY=
# PUSHER_SECRET=
# PUSHER_APP_ID=
# PUSHER_CLUSTER=

# Set this for live reload functionality via Echo/Socket.io/Redis/Laravel Echo Server
# BROADCAST_DRIVER=redis
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Homestead.yaml
Homestead.json
.env
.idea/workspace.xml
laravel-echo-server.json
11 changes: 2 additions & 9 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions config/broadcasting.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_CLUSTER', 'eu'),
'host' => 'localhost',
'port' => 6001,
],
],

'redis' => [
'driver' => 'redis',
'connection' => 'default',
'connection' => env('REDIS_BROADCAST_CONNECTION', 'default'),
],

'log' => [
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ require("laravel-elixir-webpack");

elixir(function(mix) {
mix.sass('app.scss');
mix.js(['echo.js', 'app.js']);
mix.browserify(['echo.js', 'app.js']);
});
33 changes: 33 additions & 0 deletions laravel-echo-server.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"authHost": "http://webhook.test",
"authEndpoint": "/broadcasting/auth",
"clients": [
{
"appId": "a60bbb116f7f2462",
"key": "d952cbdfb22723e675d309440e9047e9"
}
],
"database": "redis",
"databaseConfig": {
"redis": {
"path": "/tmp/redis.sock"
}
},
"devMode": true,
"host": null,
"port": "6001",
"protocol": "http",
"socketio": {
"wsEngine": "uws"
},
"sslCertPath": "",
"sslKeyPath": "",
"sslCertChainPath": "",
"sslPassphrase": "",
"apiOriginAllow": {
"allowCors": true,
"allowOrigin": "webhook.test",
"allowMethods": "*",
"allowHeaders": "*"
}
}
Loading

0 comments on commit e03db53

Please sign in to comment.