Skip to content

squeek502/heroku-buildpack-luvit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack for Luvit 2.0

A Heroku buildpack for Luvit 2.0 and/or Lit apps.

Usage

To create a new Heroku app using this buildpack:

heroku create --buildpack https://github.com/squeek502/heroku-buildpack-luvit.git

The buildpack will detect that your app has a package.lua in the root.

Luvit Apps

By default, Luvit will be compiled and added to PATH.

An example Luvit app can be found in examples/luvit_app and a running instance of this example can be found at luvit-buildpack-luvit-app.herokuapp.com

Truncated example output from a git push:

-----> Fetching custom git buildpack... done
-----> luvit app detected
-----> Found package.lua
-----> Fetching lit and building luvit
       ...
       done building: lit
       done: success
       ...
       done building: luvit
       done: success

       Luvit built to .luvit/bin/luvit

-----> Installing deps
       ...
       done: success

-----> Skipping lit make step (main.lua not found or SKIP_MAKE config var set)
-----> Creating runtime environment
-----> Discovering process types
       Procfile declares types -> web

-----> Compressing... done, 15.0MB
-----> Launching... done, v3
       https://luvit-buildpack-luvit-app.herokuapp.com/ deployed to Heroku

Note: If your app contains a main.lua and you don't want to run lit make, set the config var SKIP_MAKE (see Options)

Lit Apps

If a main.lua file is found in the root, then lit make will be executed automatically.

An example Lit app can be found in examples/lit_app and a running instance of this example can be found at luvit-buildpack-lit-app.herokuapp.com

Truncated output from a git push:

-----> Fetching custom git buildpack... done
-----> luvit app detected
-----> Found package.lua
-----> Fetching lit and building luvit
       ...
       done building: lit
       done: success
       ...
       done building: luvit
       done: success

       Luvit built to .luvit/bin/luvit

-----> Installing deps
       ...
       done: success

-----> Running lit make (main.lua found and SKIP_MAKE config var not set)
       ...
       done building: lit-example
       done: success

-----> Creating runtime environment
-----> Discovering process types
       Procfile declares types -> web

-----> Compressing... done, 15.0MB
-----> Launching... done, v3
       https://luvit-buildpack-lit-app.herokuapp.com/ deployed to Heroku

Options

To stop lit make from being executed:

heroku config:set SKIP_MAKE=

To specify the luvi version to use:

heroku config:set LUVI_VERSION=2.7.6

To specify the lit version to use:

heroku config:set LIT_VERSION=3.5.4

Releases

No releases published

Packages

No packages published

Languages