heroku

sandeep 2021-05-29T18:45:12.007700Z

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

✅ 1
sandeep 2021-05-29T18:46:29.008400Z

i am trying to deploy this repo to heroku

sandeep 2021-05-29T18:46:30.008600Z

https://github.com/prestancedesign/pingcrm-clojure

sandeep 2021-05-29T18:47:01.009200Z

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

sandeep 2021-05-29T18:47:25.009600Z

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

sandeep 2021-05-29T18:47:45.009900Z

and empty project.clj file

sandeep 2021-05-29T18:48:19.010200Z

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

practicalli-john 2021-05-29T21:38:03.010300Z

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)

practicalli-john 2021-05-29T21:40:20.010400Z

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

practicalli-john 2021-05-29T21:44:44.010700Z

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

practicalli-john 2021-05-29T21:46:53.010800Z

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

sandeep 2021-05-30T10:01:10.011700Z

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