Skip to content

Commit

Permalink
#37 Updated configs, default port is now 6001
Browse files Browse the repository at this point in the history
  • Loading branch information
Wotuu committed May 28, 2019
1 parent f931a97 commit 1756ef6
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 10 deletions.
35 changes: 35 additions & 0 deletions laravel-echo-server-live.json
@@ -0,0 +1,35 @@
{
"authHost": "127.0.0.1",
"authEndpoint": "/broadcasting/auth",
"clients": [],
"database": "redis",
"databaseConfig": {
"redis": {
"port": 6379,
"host": "localhost"
},
"sqlite": {
"databasePath": "/database/laravel-echo-server-live.sqlite"
},
"publishPresence": true
},
"devMode": false,
"host": null,
"port": "6001",
"protocol": "http",
"socketio": {},
"sslCertPath": "",
"sslKeyPath": "",
"sslCertChainPath": "",
"sslPassphrase": "",
"subscribers": {
"http": true,
"redis": true
},
"apiOriginAllow": {
"allowCors": false,
"allowOrigin": "",
"allowMethods": "",
"allowHeaders": ""
}
}
Expand Up @@ -20,7 +20,7 @@
},
"devMode": true,
"host": null,
"port": "6002",
"port": "6001",
"protocol": "http",
"socketio": {},
"sslCertPath": "",
Expand Down
20 changes: 12 additions & 8 deletions laravel-echo-server-staging.json
Expand Up @@ -4,19 +4,23 @@
"clients": [],
"database": "redis",
"databaseConfig": {
"redis": {},
"redis": {
"port": 6379,
"host": "localhost"
},
"sqlite": {
"databasePath": "/database/laravel-echo-server.sqlite"
}
"databasePath": "/database/laravel-echo-server-staging.sqlite"
},
"publishPresence": true
},
"devMode": true,
"host": "0.0.0.0",
"host": null,
"port": "6001",
"protocol": "https",
"protocol": "http",
"socketio": {},
"sslCertPath": "/etc/letsencrypt/live/staging.keystone.guru/cert.pem",
"sslKeyPath": "/etc/letsencrypt/live/staging.keystone.guru/privkey.pem",
"sslCertChainPath": "/etc/letsencrypt/live/staging.keystone.guru/chain.pem",
"sslCertPath": "",
"sslKeyPath": "",
"sslCertChainPath": "",
"sslPassphrase": "",
"subscribers": {
"http": true,
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/bootstrap.js
Expand Up @@ -27,7 +27,7 @@ window.io = require('socket.io-client');

window.Echo = new Echo({
broadcaster: 'socket.io',
host: window.location.hostname + ':6002'
host: window.location.hostname + ':6001'
});

/**
Expand Down
4 changes: 4 additions & 0 deletions update_live.sh
Expand Up @@ -25,6 +25,10 @@ echo "Refreshing DungeonData..."
tput sgr0;
php artisan db:seed --class=DungeonDataSeeder --database=migrate

# Clear any caches, we just updated
php artisan optimize:clear
# Generate route cache
php artisan route:cache
# Restart queue processors
php artisan queue:restart

Expand Down

0 comments on commit 1756ef6

Please sign in to comment.