452 Commits

Author SHA1 Message Date
Anton Bachin
a8a460e00b Add example/z-heroku 2021-05-05 20:26:52 +03:00
Anton Bachin
a2c07622f1 Playground: move welcome template into a library 2021-05-05 09:13:40 +03:00
Calascibetta Romain
dccd5ff528
Use multipart_form instead of multipart-form-data (#45) 2021-05-04 19:23:33 +03:00
Anton Bachin
21e0c8e907 dream.opam: constrain Caqti 2021-05-04 06:50:34 +03:00
Anton Bachin
db7bc73096 Error template: don't double-escape debug dump
See https://github.com/aantron/dream/pull/53#discussion_r625334347.
2021-05-04 06:44:31 +03:00
Anton Bachin
f6bb0f0bb3 Playground: release locks upon exceptions 2021-05-04 06:12:48 +03:00
Thibaut Mattio
2a940375c3
Add error template (#53) 2021-05-03 22:52:26 +03:00
Anton Bachin
42156a333f Playground: add SQLite support
Part of #47.
2021-05-03 20:13:36 +03:00
Thibaut Mattio
adab8c4bbb
Add live reloading example (#52) 2021-05-03 18:47:32 +03:00
Anton Bachin
98004dea4f Playground: add TyXML 2021-05-03 18:33:47 +03:00
Anton Bachin
43a7c117bf Playground: handle sub-paths and query parameters 2021-05-03 13:54:00 +03:00
Anton Bachin
e995724d36 Playground: per-sandbox locking 2021-05-03 13:26:01 +03:00
Anton Bachin
651ca4e3da Playground: improve container handling
- Don't rebuild when an image is already available.
- Reduce build context sizes.
- Keep well-known images across GC.
2021-05-03 12:52:04 +03:00
Anton Bachin
9d72e940a6 Playground: examples warmer 2021-05-03 12:08:08 +03:00
Anton Bachin
9b949f4072 Playground: use UFW 2021-05-03 11:24:06 +03:00
Anton Bachin
f9c26c78b6 Playground: speed up builds slightly 2021-05-03 11:23:55 +03:00
Anton Bachin
5348a44e56 Playground: avoid Sys.command 2021-05-03 09:44:31 +03:00
Anton Bachin
b3a87ad01a Examples: add libev resolutions 2021-05-03 09:27:44 +03:00
Anton Bachin
93ee097872 Playground: indent using spaces, not tabs 2021-05-03 09:21:44 +03:00
Anton Bachin
f75069574e Playground: place welcome sandboxes in file system 2021-05-03 09:04:05 +03:00
Anton Bachin
015503b656 example/*graphql*: move GraphiQL to / 2021-05-03 08:51:16 +03:00
Anton Bachin
5e84475281 Update Reason dependency in example/r-* 2021-05-03 08:44:27 +03:00
Anton Bachin
18083b6cb8 Adjust and hyperlink example/r-graphql 2021-05-03 08:42:49 +03:00
Anton Bachin
9cf286034d Quick start: try esy resolution for libev
Suggested by @ulrikstrid.
2021-05-02 22:45:12 +03:00
Anton Bachin
2262856e29 Link to playground from examples 2021-05-02 21:04:53 +03:00
Anton Bachin
54bae407f3 Playground: more CSS tweaks 2021-05-02 20:01:26 +03:00
Anton Bachin
5b82af740c Playground: adjust CSS
Part of #47.
2021-05-02 19:30:09 +03:00
Anton Bachin
f8ec065fc9 Playground: load GraphiQL examples
Part of #47.
2021-05-01 23:57:15 +03:00
Anton Bachin
e7bbf40c93 Playground: load more of the examples
Part of #47.
2021-05-01 23:51:05 +03:00
Anton Bachin
012978a346 Playground: Reason syntax support
Part of #47.
2021-05-01 23:30:23 +03:00
Anton Bachin
56f9b41005 Playground: pre-defined sandboxes for examples 2021-05-01 22:57:17 +03:00
Anton Bachin
6304abb5a0 Examples: show cd command before esy commands
See #54.
2021-05-01 19:37:53 +03:00
Anton Bachin
9a11c79fb1 Playground: GC
Part of #47.
2021-05-01 18:55:35 +03:00
Anton Bachin
e7e146dc20 Playground: don't run as root inside containers 2021-05-01 18:09:23 +03:00
Anton Bachin
b68d539460 Playground: stop containers when session dies 2021-05-01 17:59:58 +03:00
Anton Bachin
fd652da286 Playground: container name can't start with -, _ 2021-05-01 17:53:39 +03:00
Anton Bachin
0d76447215 Playground: prevent concurrent builds
Also respond that container is ready on its first output.

Part of #47.
2021-04-29 07:07:21 +03:00
Anton Bachin
034c772ced Playground: separate sessions and sandboxes
Part of #47.
2021-04-28 20:30:04 +03:00
Anton Bachin
f7cc3bad09 Playground: a lot more logging 2021-04-28 14:29:22 +03:00
Anton Bachin
a3bc25b294 WebSocket: retain request id during callback 2021-04-28 13:55:10 +03:00
Anton Bachin
54d98471ed Playground: speedy exit and kill containers 2021-04-28 13:17:45 +03:00
Anton Bachin
2ddc52f430 Bump version in docs 2021-04-28 12:15:44 +03:00
Anton Bachin
42625d123f Rename Dream.identity to Dream.no_middleware 2021-04-28 11:57:27 +03:00
Anton Bachin
37a27c4aeb Add Dream.no_route, a zero of Dream 2021-04-28 11:44:25 +03:00
Anton Bachin
4ec1ef6915 More hyperlinking of example/w-template-stream 2021-04-28 11:20:08 +03:00
Anton Bachin
db328d21d9 Simplify template examples 2021-04-28 11:11:47 +03:00
Anton Bachin
c05f644177 Add example/r-tyxml, tweak example/w-tyxml 2021-04-28 10:55:29 +03:00
Anton Bachin
6ec7a229b3 Delete some commented-out code 2021-04-28 09:50:20 +03:00
Anton Bachin
343e912289 Use (subdir ...) for vendored dependencies
Based on a similar approach in Piaf. See

9863d1c824/vendor/dune

Thanks to @anmonteiro for suggesting it.
2021-04-28 09:21:01 +03:00
Anton Bachin
1569b05d75 Grab backtraces earlier to try to preserve them
Part of #31.
2021-04-27 21:51:46 +03:00