Skip to content

Commit 674a528

Browse files
committed
Fix npm run server
1 parent bb3b9a8 commit 674a528

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/server/mongodb-grafana-proxy.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<key>ProgramArguments</key>
1818
<array>
19-
<string>/usr/local/bin/forever</string>
19+
<string>/usr/local/lib/npm-packages/bin/forever</string>
2020
<string>-l</string>
2121
<string>/usr/local/var/lib/grafana/plugins/mongodb-grafana/dist/server/mongodb-proxy-forever.log</string>
2222
<string>-o</string>

dist/server/mongodb-proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function runAggregateQuery( requestId, queryId, body, queryArgs, res, next )
267267
if ( err != null )
268268
{
269269
client.close();
270-
queryError(requestState.requestId, err, next)
270+
queryError(requestId, err, next)
271271
}
272272
else
273273
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "./node_modules/grunt-cli/bin/grunt",
99
"test": "./node_modules/grunt-cli/bin/grunt mochaTest",
10-
"server": "node ./dist/server/mongodb-proxy.js"
10+
"server": "cd dist/server && node mongodb-proxy.js"
1111
},
1212
"repository": {
1313
"type": "git",

server/mongodb-grafana-proxy.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<key>ProgramArguments</key>
1818
<array>
19-
<string>/usr/local/bin/forever</string>
19+
<string>/usr/local/lib/npm-packages/bin/forever</string>
2020
<string>-l</string>
2121
<string>/usr/local/var/lib/grafana/plugins/mongodb-grafana/dist/server/mongodb-proxy-forever.log</string>
2222
<string>-o</string>

server/mongodb-proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function runAggregateQuery( requestId, queryId, body, queryArgs, res, next )
267267
if ( err != null )
268268
{
269269
client.close();
270-
queryError(requestState.requestId, err, next)
270+
queryError(requestId, err, next)
271271
}
272272
else
273273
{

0 commit comments

Comments
 (0)