Skip to content

Commit 60e90c8

Browse files
authored
Merge pull request #9 from C4n4rd0/main
fix: sever not starting
2 parents bdf83a7 + 91d8879 commit 60e90c8

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-offline-elasticmq-localhost",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"description": "Serverless Framework Plugin to download and run ElasticMQ",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { chunksToLinesAsync } from "@rauschma/stringio";
99
import * as https from "https";
1010

1111
const MQ_LOCAL_PATH = join(__dirname, "../bin");
12-
const MQ_FILE_VERSION_PATH = `${MQ_LOCAL_PATH}/version`;
1312

1413
class ServerlessOfflineElasticMqPlugin {
1514
public readonly commands: Record<string, ServerlessPluginCommand>;
@@ -57,7 +56,7 @@ class ServerlessOfflineElasticMqPlugin {
5756
this.serverless.cli.log(
5857
`ElasticMq version ${elasticMqVersion} downloaded as ${elasticMqServerJarName}`,
5958
);
60-
fs.writeFile(MQ_FILE_VERSION_PATH, elasticMqVersion);
59+
6160
resolve();
6261
});
6362
})
@@ -174,7 +173,11 @@ aws {
174173
for await (const line of chunksToLinesAsync(readable)) {
175174
startupLog.push(line);
176175
this.serverless.cli.log(line);
177-
if (line.includes("ElasticMQ server (0.15.7) started")) {
176+
if (
177+
line.includes(
178+
`ElasticMQ server (${this.elasticMqConfig.version}) started`,
179+
)
180+
) {
178181
return (started = true);
179182
}
180183
}

0 commit comments

Comments
 (0)