tkasu / imdb-list-analyzer

Analysis tools for movie rating lists exported from the Internet Movie Database (IMDb)
1 stars 1 forks source link

Heroku slow startup/boot time #10

Open tkasu opened 5 years ago

tkasu commented 5 years ago

Current Heroku deployments and boots are done with leiningen (see Procfile), which causes Heroku server to compile both clj & cljs files every time. Especially ClojureScript compile time is quite slow. Also as we are using Heroku's hobby tier, the server goes to idle very frequently and therefore booted almost every time that the analyzer is used.

A solution would probably be to use uberjar instead of leiningen in Heroku deployments.

tkasu commented 5 years ago

Committed new uberjar test version to develop-branch and deployed it in: https://imdb-list-analyzer-test.herokuapp.com/

However, I had to restructure the clj-files from src/imdb_list_analyzer/.clj to src/imdb_list_analyzer/clj/.clj which will probably make merging from upstream a bit more unpleasant. Have to discuss with @dresa could we also make this change to upstream or how to handle this.