Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
f7a1c0e0
Commit
f7a1c0e0
authored
6 years ago
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify daemon start
parent
36213223
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
main.ts
Breeze.UI/main.ts
+7
-7
No files found.
Breeze.UI/main.ts
View file @
f7a1c0e0
...
@@ -113,7 +113,7 @@ function closeDeStreamApi() {
...
@@ -113,7 +113,7 @@ function closeDeStreamApi() {
var
http2
=
require
(
'http'
);
var
http2
=
require
(
'http'
);
const
options2
=
{
const
options2
=
{
hostname
:
'localhost'
,
hostname
:
'localhost'
,
port
:
37221
,
port
:
56864
,
path
:
'/api/node/shutdown'
,
path
:
'/api/node/shutdown'
,
method
:
'POST'
method
:
'POST'
};
};
...
@@ -129,22 +129,22 @@ function startDeStreamApi() {
...
@@ -129,22 +129,22 @@ function startDeStreamApi() {
const
spawnDeStream
=
require
(
'child_process'
).
spawn
;
const
spawnDeStream
=
require
(
'child_process'
).
spawn
;
//Start Breeze DeStream Daemon
//Start Breeze DeStream Daemon
let
apiPath
=
path
.
resolve
(
__dirname
,
'assets//daemon//
Stratis.Breeze
D'
);
let
apiPath
=
path
.
resolve
(
__dirname
,
'assets//daemon//
DeStream.DeStream
D'
);
if
(
os
.
platform
()
===
'win32'
)
{
if
(
os
.
platform
()
===
'win32'
)
{
apiPath
=
path
.
resolve
(
__dirname
,
'..
\\
..
\\
resources
\\
daemon
\\
Stratis.Breeze
D.exe'
);
apiPath
=
path
.
resolve
(
__dirname
,
'..
\\
..
\\
resources
\\
daemon
\\
DeStream.DeStream
D.exe'
);
}
else
if
(
os
.
platform
()
===
'linux'
)
{
}
else
if
(
os
.
platform
()
===
'linux'
)
{
apiPath
=
path
.
resolve
(
__dirname
,
'..//..//resources//daemon//
Stratis.Breeze
D'
);
apiPath
=
path
.
resolve
(
__dirname
,
'..//..//resources//daemon//
DeStream.DeStream
D'
);
}
else
{
}
else
{
apiPath
=
path
.
resolve
(
__dirname
,
'..//..//resources//daemon//
Stratis.Breeze
D'
);
apiPath
=
path
.
resolve
(
__dirname
,
'..//..//resources//daemon//
DeStream.DeStream
D'
);
}
}
if
(
!
testnet
)
{
if
(
!
testnet
)
{
destreamProcess
=
spawnDeStream
(
apiPath
,
[
'destream'
],
{
destreamProcess
=
spawnDeStream
(
apiPath
,
[
'destream'
],
{
detached
:
tru
e
detached
:
fals
e
});
});
}
else
if
(
testnet
)
{
}
else
if
(
testnet
)
{
destreamProcess
=
spawnDeStream
(
apiPath
,
[
'destream'
,
'-testnet'
],
{
destreamProcess
=
spawnDeStream
(
apiPath
,
[
'destream'
,
'-testnet'
],
{
detached
:
tru
e
detached
:
fals
e
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment