Suave is a simple web development F# library providing a lightweight web server and a set of combinators to manipulate route flow and task composition.

Download this project as a .zip file Download this project as a tar.gz file
View on GitHub

Deploying Suave to Heroku with Docker

Heroku does not have an official buildpack for the .NET runtime.

So, You can choose to Deploying with Docker.

Furthermore, when combined with Creating Single-file on .NET Core 3.0, we can deploy and launch apps just by creating an environment based on a simple Alpine Docker image.

The sample GitHub repository.

  1. Create standalone single file from sources:

     dotnet publish -c Release -r linux-musl-x64 /p:PublishSingleFile=true /p:PublishTrimmed=true
  2. Install the Heroku Toolbelt and login to Heroku using the command-line tools:

    heroku login
    heroku container:login
  3. Clone the sample:

    git clone
    cd heroku-suave-getting-started
  4. Create a new heroku web app and register “heroku” as a remote you can push to:

    heroku create
  5. Deploy app to Heroku:

     heroku container:push web
     heroku container:release web
  6. Browse app:

     heroku open