/heroku-buildpack-nim

Deploy nim applications to heroku.

Primary LanguageShellMIT LicenseMIT

Heroku buildpack: Nim

help maintain this lib

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.

And create a Procfile with a process to run for your executable:

web: ./main

Create an app using this buildpack

heroku create --stack cedar --buildpack https://github.com/vic/heroku-buildpack-nim.git

Options

If you want to use an specific Nim version use the NIM_BRANCH environment variable.

heroku config:set NIM_BRANCH=devel

Note by OMF: This won't work in this fork due to the changes I made to install Nim from the binary release tarballs.

Example

An example nimble app lives here