creationix / weblit

A web framework for luvit 2.0 and lit
MIT License
110 stars 24 forks source link

Heroku not working. #9

Open bakpakin opened 8 years ago

bakpakin commented 8 years ago

Even the simplest weblit apps do not build on heroku, while I can make normal luvit apps work. I believe it has something to do with the chroot in the filesystem modules.

paul-reilly commented 8 years ago

weblit successfully builds with lit locally and on Heroku here. I did have to use the main.lua from the lit_app example of the heroku-buildpack repo I used to deploy...

https://github.com/squeek502/heroku-buildpack-luvit/tree/master/examples/lit_app

You also need to rename your first file "init.lua" for the lit build to work. Having said that, although weblit apps are built successfully, they will only run locally... I get an Application Error on Heroku (correctly using the port from the env variable).

I'd be interested in hearing whether it is possible to run weblit apps from Heroku.