Layout scaffolding for Web apps.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.md 1.0 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Welcome to Remix!
  2. - [Remix Docs](https://remix.run/docs)
  3. ## Development
  4. From your terminal:
  5. ```sh
  6. npm run dev
  7. ```
  8. This starts your app in development mode, rebuilding assets on file changes.
  9. ## Deployment
  10. First, build your app for production:
  11. ```sh
  12. npm run build
  13. ```
  14. Then run the app in production mode:
  15. ```sh
  16. npm start
  17. ```
  18. Now you'll need to pick a host to deploy it to.
  19. ### DIY
  20. If you're familiar with deploying node applications, the built-in Remix app server is production-ready.
  21. Make sure to deploy the output of `remix build`
  22. - `build/`
  23. - `public/build/`
  24. ### Using a Template
  25. When you ran `npx create-remix@latest` there were a few choices for hosting. You can run that again to create a new project, then copy over your `app/` folder to the new project that's pre-configured for your target server.
  26. ```sh
  27. cd ..
  28. # create a new project, and pick a pre-configured host
  29. npx create-remix@latest
  30. cd my-new-remix-app
  31. # remove the new project's app (not the old one!)
  32. rm -rf app
  33. # copy your app over
  34. cp -R ../my-old-remix-app/app app
  35. ```