daehee / heroku-buildpack-nim

Deploy nim applications to heroku.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku buildpack: Nim

This is a Heroku buildpack for Nim apps. It uses Nimble for dependency management.

Usage

The buildpack expects you to include a .nimble file in order to download dependencies and build your app.

Be sure to set the bin value on your nimble file to the executable name for your app.

You must also create a release nimble task to provide instructions to this buildpack on how to compile your app. For example:

task release, "Build a production release":
  --verbose
  --forceBuild:on
  --opt:speed
  --threads:on
  --define:release
  --define:ssl
  --hints:off
  --outdir:"."
  setCommand "c", "src/main.nim"

Note: Without this task, nimble will NOT be able to build your release.

Finally, create a Procfile with a process to run for your executable:

web: ./main

Create an app using this buildpack

heroku create --buildpack https://github.com/OldhamMade/heroku-buildpack-nim.git

Example

An example nimble app lives here

About

Deploy nim applications to heroku.

License:MIT License


Languages

Language:Shell 100.0%