Skip to content

Commit ffad6d0

Browse files
committed
Trying to solve node port bug in docker, but not working properly.
1 parent 5f82ada commit ffad6d0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/ports/node_port/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const addon = (() => {
88
const LIBRARY_PATH = process.env.LOADER_LIBRARY_PATH || '';
99

1010
const paths = [
11+
LIBRARY_PATH,
1112
__dirname,
1213
Path.join(__dirname, 'build'),
1314
process.cwd(),
14-
LIBRARY_PATH,
1515
Path.join(LIBRARY_PATH, 'build'),
1616
Path.join(LIBRARY_PATH, 'node_modules', 'metacall'),
1717
Path.join(LIBRARY_PATH, 'node_modules', 'metacall', 'build'),
@@ -22,6 +22,13 @@ const addon = (() => {
2222
'node_portd',
2323
];
2424

25+
/* Set NODE_PATH for finding metacall lib */
26+
/*
27+
process.env.NODE_PATH = `${process.env.NODE_PATH}:${paths.join(':')}`;
28+
Module._initPaths();
29+
*/
30+
31+
/* Load addon */
2532
const addon = (() => {
2633
for (let path of paths) {
2734
for (let name of names) {

0 commit comments

Comments
 (0)