All Projects → vic → heroku-buildpack-nim

vic / heroku-buildpack-nim

Licence: MIT License
Deploy nim applications to heroku.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to heroku-buildpack-nim

Heroku Buildpack Python
The official Heroku buildpack for Python apps.
Stars: ✭ 849 (+4145%)
Mutual labels:  heroku-buildpack
Reddit Bot
🤖 Making a Reddit Bot using Python, Heroku and Heroku Postgres.
Stars: ✭ 99 (+395%)
Mutual labels:  heroku-buildpack
heroku-buildpack-d
Heroku Buildpack for the D Programming Language
Stars: ✭ 13 (-35%)
Mutual labels:  heroku-buildpack
Heroku Buildpack Jvm Common
Official Heroku buildpack for OpenJDK. It only installs the JDK and does not build an application. It is used by the Java, Scala, and Clojure buildpacks.
Stars: ✭ 34 (+70%)
Mutual labels:  heroku-buildpack
Heroku Buildpack Hugo
Heroku buildpack for Hugo, the static site generator - https://github.com/spf13/hugo
Stars: ✭ 79 (+295%)
Mutual labels:  heroku-buildpack
Heroku Buildpack Google Chrome
Run (headless) Google Chrome on Heroku
Stars: ✭ 215 (+975%)
Mutual labels:  heroku-buildpack
Dotnetcore Buildpack
Heroku .NET Core Buildpack
Stars: ✭ 416 (+1980%)
Mutual labels:  heroku-buildpack
heroku-buildpack-tex
A Heroku buildpack to run TeX Live inside a dyno.
Stars: ✭ 18 (-10%)
Mutual labels:  heroku-buildpack
Heroku Pinger
😴 Keep your free Heroku dynos awake
Stars: ✭ 84 (+320%)
Mutual labels:  heroku-buildpack
heroku-binary-buildpack
Heroku buildpack to execute binaries.
Stars: ✭ 29 (+45%)
Mutual labels:  heroku-buildpack
Heroku Buildpack Elm
Heroku buildpack for deploying Elm apps (NEEDS MAINTAINER)
Stars: ✭ 39 (+95%)
Mutual labels:  heroku-buildpack
Heroku Buildpack Nodejs
The official Heroku buildpack for Node.js apps.
Stars: ✭ 1,146 (+5630%)
Mutual labels:  heroku-buildpack
Heroku Buildpack Phoenix Static
A Heroku buildpack for building Phoenix's static assets
Stars: ✭ 225 (+1025%)
Mutual labels:  heroku-buildpack
Slugrunner
Buildpack application runner for Deis Workflow.
Stars: ✭ 14 (-30%)
Mutual labels:  heroku-buildpack
heroku-integrated-firefox-geckodriver
Buildpack enables your client code to access Firefox along with Geckodriver in a Heroku slug.
Stars: ✭ 40 (+100%)
Mutual labels:  heroku-buildpack
Heroku Buildpack Elixir
Heroku Buildpack for Elixir with nitro boost
Stars: ✭ 759 (+3695%)
Mutual labels:  heroku-buildpack
Subdir Heroku Buildpack
Allows to use subdirectory configured via environment variable as a project root
Stars: ✭ 211 (+955%)
Mutual labels:  heroku-buildpack
heroku-buildpack-deno
Heroku Buildpack for Deno
Stars: ✭ 72 (+260%)
Mutual labels:  heroku-buildpack
buildpack-stdlib
[DEPRECATED] A standard library for Heroku buildpacks written in bash.
Stars: ✭ 19 (-5%)
Mutual labels:  heroku-buildpack
heroku-buildpack-graphviz
Install Graphviz on Heroku
Stars: ✭ 18 (-10%)
Mutual labels:  heroku-buildpack

Heroku Buildpack for Nim

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

Currently supports Nim version 1.0 and upwards.

Example

$ tree
.
├── Procfile
├── app.nimble
└── src
    └── app.nim

$ heroku create --buildpack https://github.com/vic/heroku-buildpack-nim.git
Creating your-app-1234
...

$ git push heroku master
...

Minimum .nimble file:

# Package

version       = "0.1.0"
author        = "John Doe"
description   = "my next great API"
license       = "MIT"
srcDir        = "src"
bin           = @["app"]

# Dependencies

requires "nim >= 1.0.2", "jester >= 0.4.3"

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. Should be the same binary that you defined in the bin setting of your .nimble file:

web: ./app

Create an app using this buildpack

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

Nim version

Since Nim's master branch is deprecated, you have to define the branch of the Nim version that should be installed by this buildpack.

This buildpack was tested with Nim version 1.0:

heroku config:set NIM_BRANCH=version-1-0

You can use the most recent development version this way:

heroku config:set NIM_BRANCH=devel

Example

An example nimble app lives here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].