heroku 2021-05-29

hello guys, im struggling to deply a clojure app in heroku

✅ 1

i am trying to deploy this repo to heroku

added proc file : web: java -cp pingcrm.jar clojure.main -m pingcrm.system

bin/build : #!/usr/bin/env bash clojure -A:depstar -m hf.depstar.uberjar pingcrm.jar

and empty project.clj file

keep on getting. : Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 180 seconds of launch

Are you reading in the PORT environment variable that Heroku provides when starting the web server (i.e jetty) ? If jetty is not run using the provided port value, Heroku will shut it down (as Heroku cannot route traffic to the app)

If I read the code correctly, then it seems the port is hard coded to port 3000 This will fail when run on Heroku

This page has examples of how I deployed a Clojure WebApp project managed by Clojure CLI tools. Hopefully you find some of it useful. https://practical.li/clojure-webapps/projects/banking-on-clojure/deployment-via-ci.html

I'll try deploy a fork of your project in the morning, it looks very interesting

not my project. yep interesting so i decided to try as well