Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Upgrade Project to Laravel V9 #23

Open
mhyeganeh wants to merge 4 commits into beyondcode:master
base: master
Choose a base branch
Loading
from mhyeganeh:master
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Config laravel websockets port as environment variable
  • Loading branch information
mhyeganeh committed Mar 25, 2022
commit 0ba6a79eb7ce93bad94851296c7a0ec08b6b9b6e
8 changes: 5 additions & 3 deletions .env.example
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

LARAVEL_WEBSOCKETS_PORT=6001
LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT=
LARAVEL_WEBSOCKETS_SSL_LOCAL_PK=

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
MIX_LARAVEL_WEBSOCKETS_PORT="${LARAVEL_WEBSOCKETS_PORT}"
22 changes: 11 additions & 11 deletions composer.lock
View file Open in desktop

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

2 changes: 1 addition & 1 deletion config/broadcasting.php
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'host' => '127.0.0.1',
'port' => 6001,
'port' => env('LARAVEL_WEBSOCKETS_PORT', 6001),
'encrypted' => false,
'scheme' => 'http'
],
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js
View file Open in desktop

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js?id=24fa1247cb3c4660fd636fdf6ec96fa1",
"/js/app.js": "/js/app.js?id=7a47b782e0cd5833b0f3d7d8718c9202",
"/css/app.css": "/css/app.css?id=b954afb19a3c04d4eb639eb7d602dfd2"
}
3 changes: 2 additions & 1 deletion resources/js/bootstrap.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ window.Echo = new Echo({
broadcaster: 'pusher',
key: process.env.MIX_PUSHER_APP_KEY,
wsHost: window.location.hostname,
wsPort: 6001,
wsPort: process.env.MIX_LARAVEL_WEBSOCKETS_PORT || 6001,
wssPort: process.env.MIX_LARAVEL_WEBSOCKETS_PORT || 6001,
forceTLS: false,
disableStats: false,
});

AltStyle によって変換されたページ (->オリジナル) /