|
1 | 1 | +++ |
2 | | -title = "Part 1: the first build" |
| 2 | +title = "the first build" |
3 | 3 | weight = 300 |
4 | 4 | +++ |
5 | 5 |
|
@@ -83,7 +83,8 @@ To load "myproject": |
83 | 83 | myproject |
84 | 84 | ; Loading "myproject" |
85 | 85 | .............. |
86 | | -Starting the web server on port 8899 While evaluating the form starting at line 5, column 0 |
| 86 | +Starting the web server on port 8899 |
| 87 | +While evaluating the form starting at line 5, column 0 |
87 | 88 | of #P"/home/vince/projets/web-apps-in-lisp/walk/walk-book/content/tutorial/run.lisp": |
88 | 89 |
|
89 | 90 | debugger invoked on a USOCKET:ADDRESS-IN-USE-ERROR in thread |
@@ -141,7 +142,7 @@ To use another port, what would you prefer? |
141 | 142 | - we can give the port as an argument on the command line, like `--port 9000`. |
142 | 143 | - we can find the next available port. |
143 | 144 |
|
144 | | -Let's start with the latter. |
| 145 | +Let's do the latter. |
145 | 146 |
|
146 | 147 |
|
147 | 148 | ## Find a port number |
@@ -174,13 +175,11 @@ Our .asd file now looks like: |
174 | 175 | :djula ;; HTML templates |
175 | 176 |
|
176 | 177 | ;; utils |
177 | | - :str ;; strings library |
178 | 178 | :find-port ;; <------- added |
179 | 179 | ) |
180 | 180 | :components ((:module "src" ;; a src/ subdirectory |
181 | 181 | :components |
182 | 182 | ( |
183 | | - (:file "packages") ;; = src/packages.lisp |
184 | 183 | (:file "myproject") ;; = src/myproject.lisp |
185 | 184 | ))) |
186 | 185 |
|
@@ -313,8 +312,9 @@ But wait, do we *really* want to develop our app from this limited |
313 | 312 | terminal REPL? No! If you don't already, it's time you understand the |
314 | 313 | usefulness of the `load` function. |
315 | 314 |
|
316 | | -What we want is to edit our .lisp source file, instead of the REPL, |
317 | | -and then to reload the app. The reloading is done with |
| 315 | +What we want is to edit our .lisp source file, instead of copy-pasting |
| 316 | +stuff in the REPL, and then to reload the app. The reloading is done |
| 317 | +with |
318 | 318 |
|
319 | 319 | * (load "src/myproject.lisp") |
320 | 320 |
|
@@ -356,7 +356,7 @@ compression, they get to ±20MB. As your application grows, they'll |
356 | 356 | stay roughly this size. An app of mine, with dozens of dependencies |
357 | 357 | and all the application code, templates and static assets (JS and CSS) |
358 | 358 | is 35MB. LispWorks binaries, reduced in size with their tree shaker, |
359 | | -are know to be smaller, a hello world being ±5MB, a web app around |
| 359 | +are known to be smaller, a hello world being ±5MB, a web app around |
360 | 360 | 10MB. This tree shaker isn't in the free version. |
361 | 361 |
|
362 | 362 | Enough talk, let's do it. Create a new `build.lisp` file. We need these steps: |
@@ -528,7 +528,7 @@ app. Congrats! |
528 | 528 |
|
529 | 529 | ## Closing words |
530 | 530 |
|
531 | | -We are only scratching the surface of what we can do with a real app: |
| 531 | +We are only scratching the surface of what we'll want to do with a real app: |
532 | 532 |
|
533 | 533 | - parse CLI args |
534 | 534 | - handle a `C-c` and other signals |
|
0 commit comments