aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Brooks Lybrand <brookslybrand@gmail.com> 2023-09-19 14:39:23 -0500
committerGravatar GitHub <noreply@github.com> 2023-09-19 12:39:23 -0700
commitd362a8b9ec7f1e5ce7b1aff7573ce4bc44e05565 (patch)
tree92504f88a93fe55624064f029dc86e0c4067fd7f
parent8677ae9fb154dea49939dd396fdd1363959f96de (diff)
downloadbun-d362a8b9ec7f1e5ce7b1aff7573ce4bc44e05565.tar.gz
bun-d362a8b9ec7f1e5ce7b1aff7573ce4bc44e05565.tar.zst
bun-d362a8b9ec7f1e5ce7b1aff7573ce4bc44e05565.zip
docs: Update Remix guide (#5702)
* Update Remix guide * Update callout * Update docs/guides/ecosystem/remix.md Co-authored-by: Michael Jackson <michael@jackson.us> * update * Add link to remix --------- Co-authored-by: Michael Jackson <michael@jackson.us> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
-rw-r--r--docs/guides/ecosystem/remix.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/docs/guides/ecosystem/remix.md b/docs/guides/ecosystem/remix.md
index 56198d603..1aba08b23 100644
--- a/docs/guides/ecosystem/remix.md
+++ b/docs/guides/ecosystem/remix.md
@@ -3,7 +3,7 @@ name: Build an app with Remix and Bun
---
{% callout %}
-Remix currently relies on Node.js APIs that Bun does not yet implement. The guide below uses Bun to initialize a project and install dependencies, but it uses Node.js to run the dev server.
+Currently the Remix development server (`remix dev`) relies on Node.js APIs that Bun does not yet implement. The guide below uses Bun to initialize a project and install dependencies, but it uses Node.js to run the dev server.
{% /callout %}
---
@@ -58,3 +58,21 @@ $ bun run dev
Open [http://localhost:3000](http://localhost:3000) to see the app. Any changes you make to `app/routes/_index.tsx` will be hot-reloaded in the browser.
{% image src="https://github.com/oven-sh/bun/assets/3084745/c26f1059-a5d4-4c0b-9a88-d9902472fd77" caption="Remix app running on localhost" /%}
+
+---
+
+To build and start your app, run `bun run build` then `bun run start` from the project root.
+
+```sh
+$ bun run build
+ $ remix build
+ info building... (NODE_ENV=production)
+ info built (158ms)
+$ bun start
+ $ remix-serve ./build/index.js
+ [remix-serve] http://localhost:3000 (http://192.168.86.237:3000)
+```
+
+---
+
+Read the [Remix docs](https://remix.run/) for more information on how to build apps with Remix.