Skip to content

iphydf/heroku-buildpack-ocaml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

Buildpack for OCaml

This is custom buid pack to run OCaml apps on Heroku.

Available libraries

  • OCaml 4.00.1

Usage

Create Heroku app with custom buildpack:

$ heroku create --buildpack https://github.com/mzp/heroku-buildpack-ocaml
# or
$ heroku config:set BUILDPACK_URL=https://github.com/mzp/heroku-buildpack-ocaml

Create OCaml app and commit:

$ oasis quickstart
......
$ git commit -am "first commit"

Create Procfile and commit:

# e.g. ./target/bin/main is your server, and it receives port number as first argument
$ echo 'web: ./target/bin/main $PORT' > Procfile

Push to heroku:

$ git push heroku master

And setup web process num:

$ heroku ps:scale web=1

Deploy phase

Following commands is executed each deploy time:

# (if exists)
$ ./configure --prefix=./target
$ make
$ make install

See also

About

Buildpack-ocaml to run OCaml program on Heroku.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%