Fork me on GitHub
#heroku
<
2021-05-30
>
sandeep09:05:50

thanks for the pointer will look at your example.

practicalli-johnny13:05:03

I can get the server running on Heroku, however, something is not quite right as I am unable to login to the website. There is an error regarding secret key but I also get that when running locally. My guess would be the uses of sqlite as the login database, whereas postgres would be more suitable for Heroku https://devcenter.heroku.com/articles/sqlite3 Steps I took to get the server running on Heroku • forked the project • Inside the project root : heroku login to sign in and heroku create to create a new app with a random name • In the heroku dashboard, opened the settings for the app and set a config var of CLOJURE_CLI_VERSION with the latest version of CLI tools, 1.10.3.855 • update system.clj file to pull in the PORT system environment variable https://github.com/practicalli-john/pingcrm-clojure/blob/main/src/pingcrm/system.clj#L12 • create a bin/build file and make it executable https://github.com/practicalli-john/pingcrm-clojure/blob/main/bin/build • create a Procfile https://github.com/practicalli-john/pingcrm-clojure/blob/main/Procfile • create an empty project.clj file • added a system.properties file to run with Java 11 (optional) https://github.com/practicalli-john/pingcrm-clojure/blob/main/system.properties

sandeep17:05:03

why did u remove the following lines

sandeep17:05:05

:jar "pingcrm.jar" :main-class "pingcrm.system" :sync-pom true}

practicalli-johnny21:05:04

It probably would be a more complete uberjar if those options were included, although as I'm specifying the main class on the command line (Procfiile) then it doesnt seem to make any difference. With these options added, I should be able to run the project using java -jar pingcrm.jar, although that didnt seem to work. The :aot option probably doesnt do anything useful as the source code doesn't seem to contain a :gen-class directive in the main namespace.

sandeep05:05:09

thanks for the explanation

sandeep14:05:00

thanks for the help. it is running . started learning clojure 2 days ago. directly jumped into the project

sandeep14:05:14

will integrate postgres as i progress