Home

Awesome

Hello World

This is a simple Swift Hello World website using the Curassow webserver which uses a pre-fork worker model.

Usage

$ swift build --configuration release
$ ./.build/release/HelloWorld
Listening on 0.0.0.0:8000

Deployment

This example can be deployed to Heroku using the heroku-buildpack-swift.

Click the button below to automatically set up this example to run on your own Heroku account.

Deploy to Heroku

Options

$ ./.build/release/HelloWorld --help
Usage:

    $ ./.build/release/HelloWorld

Options:
    --bind
    --workers
$ ./.build/release/HelloWorld --bind 127.0.0.1:8080