Skip to content

Commit fc69b2f

Browse files
authored
tutorials: minor vweb blog updates
1 parent febd54b commit fc69b2f

File tree

1 file changed

+14
-2
lines changed
  • tutorials/building_a_simple_web_blog_with_vweb

1 file changed

+14
-2
lines changed

tutorials/building_a_simple_web_blog_with_vweb/README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Building a 150 KB web blog in V & SQLite
1+
## Building a 400 KB web blog in V & SQLite
22

33
Hello,
44

@@ -409,6 +409,18 @@ If the database file doesn't exist it will create it. The second command will
409409
create the table `Article` if none exists already. Now every time the
410410
app is run you will see the articles created from the previous executions
411411

412-
To be continued...
412+
### Building the blog
413+
414+
Run
415+
416+
```bash
417+
v -d use_openssl -o blog -prod . && strip ./blog
418+
```
419+
420+
This will result in a ~400KB binary. `-d use_openssl` tells vweb to link to OpenSSL. Without this flag mbedtls will be embedded, and the
421+
binary size will increase to ~700KB.
422+
423+
424+
### To be continued...
413425

414426
For an example of a more sophisticated web app written in V, check out Vorum: https://github.com/vlang/vorum

0 commit comments

Comments
 (0)