Skip to content

Commit 05bb811

Browse files
committed
Backport hotfix changes from STM
1 parent 27e337b commit 05bb811

4 files changed

Lines changed: 17 additions & 9 deletions

File tree

‎ProcessMaker/Models/ScriptExecutor.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Database\Eloquent\ModelNotFoundException;
66
use Illuminate\Validation\Rule;
77
use ProcessMaker\Exception\ScriptLanguageNotSupported;
8+
use ProcessMaker\Facades\Docker;
89
use ProcessMaker\Traits\Exportable;
910
use ProcessMaker\Traits\HasVersioning;
1011

@@ -196,7 +197,7 @@ public function dockerImageExists()
196197

197198
public static function listOfExecutorImages($filterByLanguage = null)
198199
{
199-
exec('docker images | awk \'{r=$1":"$2; print r}\'', $result);
200+
exec(Docker::command() . ' images | awk \'{r=$1":"$2; print r}\'', $result);
200201

201202
$instance = config('app.instance');
202203

‎config/broadcasting.php‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@
3232

3333
'pusher' => [
3434
'driver' => 'pusher',
35-
'key' => env('PUSHER_APP_KEY'),
36-
'secret' => env('PUSHER_APP_SECRET'),
37-
'app_id' => env('PUSHER_APP_ID'),
35+
'key' => env('PUSHER_APP_KEY', 'app-key'),
36+
'secret' => env('PUSHER_APP_SECRET', 'app-secret'),
37+
'app_id' => env('PUSHER_APP_ID', 'app-id'),
3838
'options' => [
39-
'cluster' => env('PUSHER_CLUSTER'),
40-
'debug' => env('PUSHER_DEBUG', false),
41-
'useTLS' => env('PUSHER_TLS', true),
39+
'host' => env('PUSHER_HOST', '127.0.0.1'),
40+
'port' => env('PUSHER_PORT', 6001),
41+
'scheme' => env('PUSHER_SCHEME', 'http'),
42+
'encrypted' => true,
43+
'useTLS' => env('PUSHER_SCHEME') === 'https',
4244
],
4345
],
4446

‎database/seeders/UserSeeder.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function run(ClientRepository $clients)
3434
'is_administrator' => true,
3535
], [
3636
'username' => self::$INSTALLER_ADMIN_USERNAME,
37-
'password' => Hash::make(self::$INSTALLER_ADMIN_PASSWORD),
37+
'password' => Hash::make(env('INSTALL_ADMIN_PASSWORD', self::$INSTALLER_ADMIN_PASSWORD)),
3838
'email' => self::$INSTALLER_ADMIN_EMAIL,
3939
'firstname' => self::$INSTALLER_ADMIN_FIRSTNAME,
4040
'lastname' => self::$INSTALLER_ADMIN_LASTNAME,

‎resources/views/layouts/layout.blade.php‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@
5858
broadcaster: "pusher",
5959
key: "{{config('broadcasting.connections.pusher.key')}}",
6060
cluster: "{{config('broadcasting.connections.pusher.options.cluster')}}",
61+
wsHost: "{{config('broadcasting.connections.pusher.options.host')}}",
62+
wsPort: "{{config('broadcasting.connections.pusher.options.port')}}",
63+
wssPort: "{{config('broadcasting.connections.pusher.options.port')}}",
6164
forceTLS: {{config('broadcasting.connections.pusher.options.use_tls') ? 'true' : 'false'}},
62-
debug: {{config('broadcasting.connections.pusher.options.debug') ? 'true' : 'false'}}
65+
debug: {{config('broadcasting.connections.pusher.options.debug') ? 'true' : 'false'}},
66+
enabledTransports: ['ws', 'wss'],
67+
disableStats: true,
6368
};
6469
@endif
6570
@endif

0 commit comments

Comments
 (0)