Genie.jl
Genie.jl copied to clipboard
Documentation for using PackageCompiler with Genie
I'm experimenting with using Genie for a hobby project and I wanted to use PackageCompiler.jl to precompile the app. I'm deploying the app on heroku, and it is set up as part of a build image. Thanks to @Optomatica and @mbauman for the first version of the buildpack and the buildpack using PackageCompiler respectively.
These are the lines of code that I'm currently using:
https://github.com/kdheepak/heroku-buildpack-julia/blob/d47ef067e980edd71b15f849be7f64ef14cc673f/bin/compile#L71-L79
The issue is even after building and deploying a Genie app using PackageCompiler.jl, the first time to launch is slow. It is faster than not using PackageCompiler though. The next few requests are all fast.
I would like to develop a Genie app that is not just scripts using include, but a package and see if that makes a difference. My experience precompiling a HTTP.jl server using PackageCompiler is not what I'm experiencing with Genie and I'm trying to figure out why.
Hope that helps describe the issue. Let me know if there are any questions.
@kdheepak Thanks
I would like to develop a Genie app that is not just scripts using include, but a package and see if that makes a difference
In the latest version this should just work: Genie apps now have a uuid
. Try creating a new app in .julia/dev
and then pkg> dev
it.
Let me know how it works.