Skip to content

Commit b9b50c5

Browse files
committed
remove references to service1
1 parent 9fff7eb commit b9b50c5

File tree

10 files changed

+37
-15
lines changed

10 files changed

+37
-15
lines changed

samples/nextjs-documentation/app/pages/getting-started/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ By default, all the output (stdout and stderr) from your app is logged. You can
4040
- From the CLI:
4141

4242
```tsx
43-
defang tail --name service1
43+
defang tail --name web
4444
```
4545

4646
- From the Defang Portal:

samples/nextjs-documentation/app/pages/getting-started/monitor.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ By default, all the output (stdout and stderr) from your app is logged. You can
55
- From the CLI:
66

77
```tsx
8-
defang tail --name service1
8+
defang tail --name web
99
```
1010

1111
- From the Defang Portal:

samples/nodejs-chatroom/app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/nodejs-chatroom/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "service1",
2+
"name": "nodejs-chatroom",
33
"version": "1.0.0",
44
"description": "",
55
"main": "main.js",

samples/nodejs-express/app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/nodejs-express/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "service1",
2+
"name": "nodejs-express",
33
"version": "1.0.0",
44
"description": "",
55
"main": "main.js",

samples/pulumi/app/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Use an official Node runtime based on Alpine as a parent image
2+
FROM node:18-alpine
3+
4+
# Set the working directory to /app
5+
WORKDIR /app
6+
7+
# Copy the current directory contents into the container at /app
8+
COPY . .
9+
10+
# Run the app when the container launches
11+
ENTRYPOINT [ "node", "main.js" ]

samples/pulumi/app/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const http = require('http');
2+
3+
const server = http.createServer((req, res) => {
4+
res.statusCode = 200;
5+
res.setHeader('Content-Type', 'text/plain');
6+
res.end('Welcome to Defang\n');
7+
});
8+
9+
server.listen(3000, '0.0.0.0', () => {
10+
console.log('Server running at http://127.0.0.1:3000/');
11+
});

samples/pulumi/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
*/
55
import { DefangService } from "@defang-io/pulumi-defang/lib";
66

7-
const service1 = new DefangService("service1", {
7+
const nodejs = new DefangService("nodejs", {
88
build: {
9-
context: "../nodejs-http",
9+
context: "./app",
1010
},
1111
ports: [{ mode: "ingress", target: 3000 }],
1212
});
1313

14-
export const fqdn = service1.fqdn;
14+
export const fqdn = nodejs.fqdn;

samples/vllm/ui/src/app/docs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ You can find the latest version of the Defang CLI on the [releases page](https:/
169169
- This message is displayed when you run `defang compose up` and the Compose file declares a `port` that does not specify a port `mode`. By default, Defang will keep the port private. If you want to expose the port to the public internet, you should specify the `mode` as `ingress`:
170170
```
171171
services:
172-
service1:
172+
app:
173173
ports:
174174
- target: 80
175175
mode: ingress
@@ -188,7 +188,7 @@ services:
188188
- This message is displayed when you run `defang compose up` and the Compose file declares a `resource` with `limits` but no `reservations`. Defang will use the `limits` as `reservations` to ensure the container has enough resources. Specify `reservations` if you want to silence the warning or reserve a different amount of resources:
189189
```
190190
services:
191-
service1:
191+
app:
192192
deploy:
193193
resources:
194194
reservations:
@@ -200,7 +200,7 @@ services:
200200
- This message is displayed when you run `defang compose up` and the Compose file declares an `ingress` with a `port` but no `healthcheck`. Defang will assume the default healthcheck of `GET / HTTP/1.1` to ensure the port is healthy. Specify a `healthcheck` if you want to silence the warning or use a different healthcheck:
201201
```
202202
services:
203-
service1:
203+
app:
204204
deploy:
205205
healthcheck:
206206
test: ["CMD", "curl", "-f", "http://localhost:80/health"]
@@ -210,7 +210,7 @@ services:
210210
- This message is displayed when you run `defang compose up` and the Compose file doesn't specify a `memory` reservation. If available, Defang will use the `memory` limit as the `memory` reservation. Specify a `memory` reservation if you want to silence the warning or reserve a different amount of memory:
211211
```
212212
services:
213-
service1:
213+
app:
214214
deploy:
215215
resources:
216216
reservations:

0 commit comments

Comments
 (0)