Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
adds a "Run a Farm.js App" guide to the JS framework guides, plus its nav entry in
docs.jsonand an entry on the JS frameworks page (all after deno, alphabetically). it follows the remix guide's shape and reuses the flyctl and launched snippets.Farm.js is a full-stack framework (typed file routes, server actions, streaming ssr, with react, preact, solid, vue or svelte). the guide has the reader add a two-stage Dockerfile before
fly launch, and explains why: the Dockerfilefly launchgenerates for a node app runsnpm prune --omit=devand thennpm run start, and farm'sstartscript calls thefarmcli, which is a dev dependency, so the machine fails withfarm: command not found. the guide's Dockerfile runs the self-contained server in.farm/.outputwithnodeinstead.Preview
no layout or component changes. the new page is
js/frameworks/farmjs.mdx.how i checked it, on a fresh app from
npx @farm.js/create-app@latest(0.1.2):@flydotio/dockerfileon it and reproduced the failure: afternpm prune --omit=dev,npm run startexits withfarm: command not found.farm/.outputcopied out of the project with no node_modules serves pages, the docs route and client assets, andnode .farm/.output/server/index.mjslistens on 3000 on all interfaces, matching theEXPOSE 3000thatfly launchreadsfly launchfrom my machine, so that part is checked by running the same commands directly rather than inside an imageRelated Fly.io community and GitHub links
none
Notes
docs.jsonstill parses after the nav change.