mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(console): fix issue with undefined socket (#248)
This commit is contained in:
parent
739a5ec299
commit
7cd2da4c6e
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ function ($scope, $stateParams, Settings, Container, Exec, $timeout, Messages) {
|
||||||
|
|
||||||
// Ensure the socket is closed before leaving the view
|
// Ensure the socket is closed before leaving the view
|
||||||
$scope.$on('$stateChangeStart', function (event, next, current) {
|
$scope.$on('$stateChangeStart', function (event, next, current) {
|
||||||
if (socket !== null) {
|
if (socket && socket !== null) {
|
||||||
socket.close();
|
socket.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -275,7 +275,7 @@ module.exports = function (grunt) {
|
||||||
command: [
|
command: [
|
||||||
'docker stop portainer',
|
'docker stop portainer',
|
||||||
'docker rm portainer',
|
'docker rm portainer',
|
||||||
'docker run -d -p 9000:9000 -v /tmp/portainer:/data --name portainer portainer -H tcp://10.0.7.10:4000 --swarm -d /data'
|
'docker run -d -p 9000:9000 -v /tmp/portainer:/data --name portainer portainer -H tcp://10.0.7.10:2375 --swarm -d /data'
|
||||||
].join(';')
|
].join(';')
|
||||||
},
|
},
|
||||||
runSsl: {
|
runSsl: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue