Embed static files #64

Open
opened 2021-05-02 15:32:05 +02:00 by Jef Roosens · 0 comments
  • Docs
  • Frontend
  • API docs
  • Add cache headers

There's two approaches we can try:

Using this crate we could embed both the frontend & docs inside the binary, allowing for a truly single binary experience™. There's even a Rocket example.

A more simpler approach would be to just add the static files for the docs & frontend inside the container, and serve them using Rocket.

Both methods result in a single container deployment, which is what we want.

- [ ] Docs - [ ] Frontend - [ ] API docs - [ ] Add cache headers There's two approaches we can try: Using [this crate](https://crates.io/crates/rust-embed) we could embed both the frontend & docs inside the binary, allowing for a truly single binary experience™. There's even a [Rocket example](https://github.com/pyros2097/rust-embed/blob/master/examples/rocket.rs). A more simpler approach would be to just add the static files for the docs & frontend inside the container, and serve them using Rocket. Both methods result in a single container deployment, which is what we want.
Jef Roosens added this to the Fej 1.1.0 - The Calm before the Storm milestone 2021-05-02 15:32:05 +02:00
Jef Roosens added the
Brainstorm
label 2021-05-02 15:32:05 +02:00
Jef Roosens self-assigned this 2021-05-02 15:32:05 +02:00
Jef Roosens added this to the Fej 1.1.0 project 2021-05-02 15:32:05 +02:00
Jef Roosens changed title from Embedding static files in the binary to Embed static files 2021-05-12 12:16:23 +02:00
Jef Roosens added
enhancement
and removed
Brainstorm
labels 2021-05-12 12:16:37 +02:00
Jef Roosens added a new dependency 2021-05-12 12:17:51 +02:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
Reference: Chewing_Bever/fej#64
There is no content yet.