Skip to content

Commit

Permalink
update example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Feb 15, 2023
1 parent 54a737b commit b86715d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ void main() async {

final address = InternetAddress.anyIPv4;
final port = App.getEnv('PORT', 8080);
await app.serve(ShelfServer(address, port));
await App.serve(app, ShelfServer(address, port), threads: 3);
print("server started at ${address.address}:$port");
print('press any key to exit.');
stdin.readByteSync();
}
```

Expand Down

0 comments on commit b86715d

Please sign in to comment.