File tree 3 files changed +44
-0
lines changed
3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ D Hello World
2
+ ==================
3
+
4
+ ``` sh
5
+ export DC=/usr/bin/dmd
6
+ dub build
7
+ ```
8
+
9
+ ``` sh
10
+ eyberg@s1:~ /dz$ ops run dz -p 8080
11
+ running local instance
12
+ booting /home/eyberg/.ops/images/dz ...
13
+ en1: assigned 10.0.2.15
14
+ [main(----) INF] Listening for requests on http://[::]:8080/
15
+ [main(----) INF] Listening for requests on http://0.0.0.0:8080/
16
+ Vibe was run as root, and no user/group has been specified for privilege
17
+ lowering. Running with full permissions.
18
+ en1: assigned FE80::D0E8:FFFF:FEF9:37EA
19
+ ```
Original file line number Diff line number Diff line change
1
+ {
2
+ "authors" : [
3
+ " eyberg"
4
+ ],
5
+ "copyright" : " Copyright © 2023, eyberg" ,
6
+ "description" : " A minimal D application." ,
7
+ "license" : " proprietary" ,
8
+ "name" : " dz" ,
9
+ "dependencies" : {
10
+ "vibe-d" : " ~>0.9.0"
11
+ }
12
+ }
Original file line number Diff line number Diff line change
1
+ import std.stdio ;
2
+
3
+ /+ dub.sdl:
4
+ dependency "vibe-d" version="~>0.9.0"
5
+ +/
6
+ void main ()
7
+ {
8
+ import vibe.d;
9
+ listenHTTP(" :8080" , (req, res) {
10
+ res.writeBody(" Hello, World: " ~ req.path);
11
+ });
12
+ runApplication();
13
+ }
You can’t perform that action at this time.
0 commit comments