mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
docs
This commit is contained in:
1 parent
cfaca604f5
commit
6b7f14c69d
2 files changed
+386
-2
No files matched your search
+2
-1
@@ -3633,7 +3633,6 @@ This makes it possible to serve files on devices with no
|
||||
filesystem. Even on devices with a filesystem, packing some files like Web UI
|
||||
can be beneficial to be resilient to filesystem errors.
|
||||
|
||||
<img src="images/packed.svg" alt="packed filesystem" />
|
||||
|
||||
In order to use packed filesystem do the following:
|
||||
|
||||
@@ -3652,6 +3651,8 @@ $ ./pack index.html style.css > packed_fs.c
|
||||
$ cc mongoose.c app.c packed_fs.c -DMG_ENABLE_PACKED_FS=1
|
||||
```
|
||||
|
||||
<img src="images/packed.svg" alt="packed filesystem" />
|
||||
|
||||
4. In your application code:
|
||||
```c
|
||||
struct mg_http_serve_opts opts = {}; // Initialise empty options
|
||||
|
||||
Reference in new issue
Block a user