Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vic/heroku-buildpack-nim
Deploy nim applications to heroku.
https://github.com/vic/heroku-buildpack-nim
heroku-buildpack nim
Last synced: 3 months ago
JSON representation
Deploy nim applications to heroku.
- Host: GitHub
- URL: https://github.com/vic/heroku-buildpack-nim
- Owner: vic
- License: mit
- Created: 2015-01-11T06:47:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-11T08:40:20.000Z (over 2 years ago)
- Last Synced: 2024-10-11T22:23:53.277Z (4 months ago)
- Topics: heroku-buildpack, nim
- Language: Shell
- Size: 9.77 KB
- Stars: 21
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Heroku Buildpack for Nim
========================This is a [Heroku-compatible buildpack](http://devcenter.heroku.com/articles/buildpacks) for [Nim](http://nim-lang.org) apps. It uses [Nimble](https://github.com/nim-lang/nimble) for dependency management.
Currently supports Nim version 1.0 and upwards.
Example
-------```shell
$ 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:
```ini
# Packageversion = "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](https://github.com/nim-lang/nimble#binary-packages) 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:
```yaml
web: ./app
```Create an app using this buildpack
```shell
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:
```shell
heroku config:set NIM_BRANCH=version-1-0
```You can use the most recent development version this way:
```shell
heroku config:set NIM_BRANCH=devel
```Example
-------An [example nimble app](https://github.com/vic/nim-heroku-example) lives [here](http://nim-heroku-example.herokuapp.com)