      ["-t"   "--test-jobs-suffix suffix"    "test jobs suffix, for example 'test'"                         :id :test-jobs-suffix]
      ["-f"   "--fetch-only"                 "just start job fetcher once, then stop processing"            :id :fetch-only]
      ["-c"   "--config"                     "just show the actual configuration"                           :id :show-config]])
+
+; we need to load the configuration in advance so the 'app' could use it
+(def configuration (config/load-configuration-from-ini "config.ini"))
 
 (def access-control-allow-origins
     "Only following domains will be properly handled by HTTP access control."


(defn fetch-jobs-only
    [options]
    ;(config/load-all-configuration-options-if-necessary)
    (println "Generating data2.edn")
    ;(job-data-fetcher/try-to-fetch-and-export-data)
    (println "Done"))

(require '[ring.adapter.jetty      :as jetty])
(require '[ring.middleware.params  :as http-params])
(require '[ring.middleware.cookies :as cookies])

(require '[clojure.tools.cli       :as cli])

(require '[emender-jenkins.server       :as server])
(require '[emender-jenkins.config       :as config])
(require '[emender-jenkins.middleware   :as middleware])
(require '[emender-jenkins.process-info :as process-info])

(def cli-options
    "Definitions of all command line options that are  currenty supported."
    ;; an option with a required argument
    [["-h"   "--help"                       "show help"                                                    :id :help]
     ["-p"   "--port   PORT"                "port number on which Stage Dashboard should accepts requests" :id :port]
