Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to bundle everything up #243

Open
DanielJoyce opened this issue Jan 21, 2024 · 2 comments
Open

Add command to bundle everything up #243

DanielJoyce opened this issue Jan 21, 2024 · 2 comments

Comments

@DanielJoyce
Copy link
Contributor

Trying to figure out how to get all the pieces together to deploy a final artifact. Might make sense to have a command that will gather everything into a zip for easy deployment.

@DanielJoyce
Copy link
Contributor Author

Messing around, it seems some things are bundled in the server binary, and some things aren't, some things need to be copied and some things don't.

A few things here

  1. I think cargo-leptos should lean into convention over configuration
  2. I think it might be good to bundle everything into a single page as much as possible in the common case
  3. The steps for doing 2) should be expressed not in cargo-leptos, but a common dev script that cargo-leptos builds when it is used to generate a new project.

@ALEZ-DEV
Copy link

Hey,

Have you tried to create a Dockerfile instead ?

Or if you really want to create zip file, you can directly try to compile the project with this command :
cargo leptos build --release -vv
but I don't know if this include the static files in the binary

hope this help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants