heroku-buildpack-racket
                                
                                 heroku-buildpack-racket copied to clipboard
                                
                                    heroku-buildpack-racket copied to clipboard
                            
                            
                            
                        Detailed steps for setup?
Hey Alexis, I tried following along with your blog post and this README to get a sample application up on Heroku using this buildpack. It seems like there are some details either left out, or you are assuming a knowledge of Racket.
I'm totally new to Racket so it's a little confusing.
Some questions:
- do I need to name my application file anything specific?
- what is an info.rktfile and what contents does it need?
Maybe if you had a sample application that was deployable using this buildpack that could serve as a great template. I'd be happy to help create it! :smile:
As it turns out, I do have the code for the sample app available on GitHub here. Unfortunately, I have been a little bit aware that it is actually inaccurate—that app will build okay on Heroku simply because its dependencies are in the main distribution, but it should really declare its dependencies since that’s a pretty brittle guarantee.
To answer your questions more directly:
- Nope, you don’t need to name your app file anything specific because you will specify what the entrypoint is in Heroku’s Procfile. I recommended using the -lflag when running your app which will run the relevant file without tying things to the filesystem, which I don’t guarantee won’t change at some point.
- An info.rktfile is a file that expresses the dependencies for your app. More generally, aninfo.rktfile is part of the Racket package system which specifies all sorts of package metadata. This buildpack assumes your application is, itself, a Racket package, mostly so it knows how to install the modules to a particular location and so that it can manage dependencies.
I do see that these things could easily be elements of confusion, though, so I will work on making the sample app easier to understand. I do have a few small apps I have deployed using this buildpack myself, but none of them are currently open-source... perhaps I should consider opening them.
@lexi-lambda that would be really awesome! I feel like there's an upswing of interest in Racket at the moment (thanks John Carmack!) and one of the first things people want to do when they learn a new language is build a web app in it. Not that that always makes sense, but hey... :smile_cat:
I should note that I open-source a small (but hopefully practical/more real-world) Racket application that uses this buildpack a couple months ago, which is here: https://github.com/lexi-lambda/litpub
I’m not sure if that helps, but it’s worth noting for posterity.
Thanks!
On Jul 8, 2016, at 7:21 PM, Alexis King [email protected] wrote:
I should note that I open-source a small (but hopefully practical/more real-world) Racket application that uses this buildpack a couple months ago, which is here: https://github.com/lexi-lambda/litpub https://github.com/lexi-lambda/litpub I’m not sure if that helps, but it’s worth noting for posterity.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lexi-lambda/heroku-buildpack-racket/issues/1#issuecomment-231509510, or mute the thread https://github.com/notifications/unsubscribe/AAlQRhWu1ZfxudpWV3YMrIRVsGrKmFo1ks5qTwWygaJpZM4Hrfxy.