heroku

Valentín 2021-04-12T01:44:12.010200Z

Hi guys, I have a silly question. I got that re-frame template, I made some changes... how can I deploy that code to heroku?

Valentín 2021-04-12T01:44:43.010300Z

https://github.com/day8/re-frame-template

practicalli-john 2021-04-12T16:37:56.014Z

@vfernandez11 In general, its very straightforward to deploy Clojure applications to Heroku, the only configuration required it a Procfile to tell Heroku how to run your application. With Clojure this is usually a simple java ... command. However, for a re-frame application you will need to understand what type of application is created when running npm run release If this is just JavaScript code, then you would need a simple webserver app on Heroku to serve up the JavaScript app as a page. Or rather than use a webserver, deploy the JavaScript onto a Service like GitHub Pages or GitLab Pages and configure the npm run release to output to the docs folder and set that as the location the re-frame application is served from. There is an example shadow-cljs project that uses GitHub pages here: https://github.com/porkostomus/mecca-mei