This buildpack installs the most recent commit of V from https://github.com/vlang/v.
This repo is forked from https://github.com/louis77/heroku-buildpack-v
$ heroku create --buildpack https://github.com/zztkm/heroku-buildpack-v.git
$ heroku buildpacks:set https://github.com/zztkm/heroku-buildpack-v.git
To deploy a V app, your repo should contain at minimum these files:
app.v
vpm.txt
app.v
will be compiled and run on deploy.
vpm.txt
is a list of VPM modules that will be installed using v install ...
before your app is compiled. List one module per line and terminate with a new line:
nedpals.jsonrpc
nedpals.args
You can omit vpm.txt
, no packages will be installed then.
Find available VPM modules in the VPM modules directory.
remote.txt
is a list of remote git repo urls and their module name that will be installed using git clone remote_url ~/repo_author_name/module_name
and ln -s ~/repo_author_name ~/.vmodules/
before your app is compiled. List one repo and module name per line separated by a space and terminate with a new line:
https://www.github.com/username/repo_name.git repo_author_name module_name
https://some_other_url/username/another_repo.git repo_author_name module_name_too
creates the following directories:
~/.vmodules/repo_author_name/module_name
~/.vmodules/repo_author_name/module_name_too
You can omit remote.txt
, no repos will be cloned then.
If there is no Procfile in the base directory of the code being built, then a default Procfile is created that that looks like this:
web: ./app
To change this buildpack, fork it on GitHub & push changes to your fork. Contributions are very welcome!
- Support to define desired commit/branch of V
- Cache compiled V binary
- Cache installed modules
- Add config facility
© Louis Brauer under The MIT License. Feel free to do whatever you want with it.