Hands-On Server-Side Web Development with Swift
上QQ阅读APP看书,第一时间看更新

Running your Kitura app from a Terminal

When the building process finishes, you are ready to launch the app server and test it with a web browser or the curl command in the Terminal.

Launch the debug version of your helloWorld app:

# Step 2a: Run the app from Terminal
$ .build/debug/helloWorld

Alternatively, you can run the swift run command to launch the application:

# Step 2b: Run the app from Terminal
$ swift run