From 225075ed477e188dc06d63aa3773e5dbba6ed62b Mon Sep 17 00:00:00 2001 From: "Alexander R. Saint Croix" Date: Fri, 4 Mar 2016 21:37:38 +0000 Subject: [PATCH] Add configs for deployment in Heroku Adds a Procfile and system.properties file needed for deploying compojure-api apps to Heroku. Allows Heroku to start a headless ring server. Also adds a minimum clojure version to the project.clj, to help Heroku build and launch. See http://islandofatlas.net/2013/08/15/deploying-clj-compojure-in-heroku.html for more details. --- Procfile | 1 + project.clj | 1 + system.properties | 1 + 3 files changed, 3 insertions(+) create mode 100644 Procfile create mode 100644 system.properties diff --git a/Procfile b/Procfile new file mode 100644 index 0000000000..9c93f9fc7f --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: lein ring server-headless diff --git a/project.clj b/project.clj index 421abe23fa..c10f65fcce 100644 --- a/project.clj +++ b/project.clj @@ -19,6 +19,7 @@ :init cia.init/init! :nrepl {:start? true}} :uberjar-name "server.jar" + :min-lein-version "2.4.0" :test-selectors {:es-store #(.contains (name (:name %)) "-es-store") :default #(not (or (.contains (name (:name %)) "-es-store") (:integration %) diff --git a/system.properties b/system.properties new file mode 100644 index 0000000000..5e8606c891 --- /dev/null +++ b/system.properties @@ -0,0 +1 @@ +java.runtime.version=1.8