Skip to content

Commit 379dc87

Browse files
fix: serve command
1 parent cbe91e5 commit 379dc87

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/canary/deployment/production.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To run Fresh in production mode, run the `start` task:
2929
```sh Terminal
3030
deno task start
3131
# or
32-
deno run -A _fresh/server.js
32+
deno serve -A _fresh/server.js
3333
```
3434
3535
Fresh will automatically pick up the optimized assets in the `_fresh` directory.

init/src/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ RUN deno cache _fresh/server.js
162162
163163
EXPOSE 8000
164164
165-
CMD ["run", "-A", "_fresh/server.js"]
165+
CMD ["serve", "-A", "_fresh/server.js"]
166166
167167
`;
168168
await writeFile("Dockerfile", DOCKERFILE_TEXT);

update/src/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export async function updateProject(dir: string) {
137137
}
138138

139139
if (tasks.preview === "deno run -A main.ts") {
140-
tasks.preview = "deno run -A _fresh/server.js";
140+
tasks.preview = "deno serve -A _fresh/server.js";
141141
}
142142
}
143143
});

update/src/update_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Deno.test("update - 1.x project deno.json tasks + lock", async () => {
132132
.toEqual({
133133
build: "deno run -A dev.ts build",
134134
check: "deno fmt --check && deno lint && deno check",
135-
preview: "deno run -A _fresh/server.js",
135+
preview: "deno serve -A _fresh/server.js",
136136
start: "deno run -A --watch=static/,routes/ dev.ts",
137137
update: "deno run -A -r jsr:@fresh/update .",
138138
});

0 commit comments

Comments
 (0)