@certik/skynet 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/app.js +1 -1
- package/deploy.js +10 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/app.js
CHANGED
|
@@ -594,7 +594,7 @@ function api({ name, routes, serve, env = {}, region = "us-east-1" }) {
|
|
|
594
594
|
func: async () => {
|
|
595
595
|
const errors = [];
|
|
596
596
|
|
|
597
|
-
const url =
|
|
597
|
+
const url = `http://localhost:9999${serve.prefix}/`;
|
|
598
598
|
const res = await fetch(url);
|
|
599
599
|
|
|
600
600
|
if (!res.ok) {
|
package/deploy.js
CHANGED
|
@@ -84,6 +84,16 @@ const genConfig = ({
|
|
|
84
84
|
unlimited = false
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
${
|
|
88
|
+
service
|
|
89
|
+
? `# Setup Service Network
|
|
90
|
+
network {
|
|
91
|
+
port "http" {
|
|
92
|
+
static = ${service.port}
|
|
93
|
+
}
|
|
94
|
+
}` : ""
|
|
95
|
+
}
|
|
96
|
+
|
|
87
97
|
task "log-shipper" {
|
|
88
98
|
driver = "raw_exec"
|
|
89
99
|
|
|
@@ -127,12 +137,6 @@ const genConfig = ({
|
|
|
127
137
|
${
|
|
128
138
|
service
|
|
129
139
|
? `# Setup API Routes
|
|
130
|
-
network {
|
|
131
|
-
port "http" {
|
|
132
|
-
static = ${service.port}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
140
|
service {
|
|
137
141
|
name = "${jobName}"
|
|
138
142
|
port = "http"
|