Commit 290efbf7 authored by Christopher League's avatar Christopher League 🖥

Redirect to static file for /version

parent 9509d7ac
Pipeline #827 failed with stage
in 58 seconds
((haskell-mode . ((haskell-indent-spaces . 4) ((haskell-mode
(haskell-process-use-ghci . t) . ((haskell-indent-spaces . 4)
(haskell-process-args-cabal-repl . ("-ferror-spans -fno-diagnostics-show-caret -fshow-loaded-modules")) (haskell-process-type . cabal-new-repl)
(haskell-process-args-stack-ghci . ("--ghc-options=-ferror-spans" "--ghc-options=-fno-diagnostics-show-caret" "--ghc-options=-fshow-loaded-modules")) (haskell-process-wrapper-function
)) . (lambda (argv) (append (list "nix-shell" "--command")
(list (mapconcat 'identity argv " ")))))
))
(shakespeare-hamlet-mode . ((electric-indent-mode . nil))) (shakespeare-hamlet-mode . ((electric-indent-mode . nil)))
(hamlet-mode . ((hamlet/basic-offset . 4) (hamlet-mode . ((hamlet/basic-offset . 4)
(haskell-process-use-ghci . t)))) (haskell-process-use-ghci . t))))
version.txt export-subst static/version.txt export-subst
{ mkDerivation, aeson, base, blaze-markup, bytestring { mkDerivation, aeson, base, blaze-markup, bytestring
, case-insensitive, classy-prelude, classy-prelude-yesod , case-insensitive, classy-prelude, classy-prelude-yesod
, containers, data-default, directory, exceptions, fast-logger , containers, data-default, directory, exceptions, fast-logger
, file-embed, foreign-store, gitrev, gogol, gogol-apps-calendar , file-embed, foreign-store, gogol, gogol-apps-calendar
, hjsmin, hpack, hspec, http-client-tls, http-conduit, http-types , hjsmin, hpack, hspec, http-client-tls, http-conduit, http-types
, lens, monad-control, monad-logger, shakespeare, sorted-list , lens, monad-control, monad-logger, shakespeare, sorted-list
, stdenv, template-haskell, text, time, transformers, tz , stdenv, template-haskell, text, time, transformers, tz
...@@ -17,7 +17,7 @@ mkDerivation { ...@@ -17,7 +17,7 @@ mkDerivation {
libraryHaskellDepends = [ libraryHaskellDepends = [
aeson base blaze-markup bytestring case-insensitive classy-prelude aeson base blaze-markup bytestring case-insensitive classy-prelude
classy-prelude-yesod containers data-default directory exceptions classy-prelude-yesod containers data-default directory exceptions
fast-logger file-embed foreign-store gitrev gogol fast-logger file-embed foreign-store gogol
gogol-apps-calendar hjsmin http-client-tls http-conduit http-types gogol-apps-calendar hjsmin http-client-tls http-conduit http-types
lens monad-control monad-logger shakespeare sorted-list lens monad-control monad-logger shakespeare sorted-list
template-haskell text time transformers tz unordered-containers template-haskell text time transformers tz unordered-containers
...@@ -28,7 +28,7 @@ mkDerivation { ...@@ -28,7 +28,7 @@ mkDerivation {
executableHaskellDepends = [ executableHaskellDepends = [
aeson base blaze-markup bytestring case-insensitive classy-prelude aeson base blaze-markup bytestring case-insensitive classy-prelude
classy-prelude-yesod containers data-default directory exceptions classy-prelude-yesod containers data-default directory exceptions
fast-logger file-embed foreign-store gitrev gogol fast-logger file-embed foreign-store gogol
gogol-apps-calendar hjsmin http-client-tls http-conduit http-types gogol-apps-calendar hjsmin http-client-tls http-conduit http-types
lens monad-control monad-logger shakespeare sorted-list lens monad-control monad-logger shakespeare sorted-list
template-haskell text time transformers tz unordered-containers template-haskell text time transformers tz unordered-containers
...@@ -38,7 +38,7 @@ mkDerivation { ...@@ -38,7 +38,7 @@ mkDerivation {
testHaskellDepends = [ testHaskellDepends = [
aeson base blaze-markup bytestring case-insensitive classy-prelude aeson base blaze-markup bytestring case-insensitive classy-prelude
classy-prelude-yesod containers data-default directory exceptions classy-prelude-yesod containers data-default directory exceptions
fast-logger file-embed foreign-store gitrev gogol fast-logger file-embed foreign-store gogol
gogol-apps-calendar hjsmin hspec http-client-tls http-conduit gogol-apps-calendar hjsmin hspec http-client-tls http-conduit
http-types lens monad-control monad-logger shakespeare sorted-list http-types lens monad-control monad-logger shakespeare sorted-list
template-haskell text time transformers tz unordered-containers template-haskell text time transformers tz unordered-containers
......
...@@ -20,7 +20,6 @@ dependencies: ...@@ -20,7 +20,6 @@ dependencies:
- fast-logger >=2.2 && <2.5 - fast-logger >=2.2 && <2.5
- file-embed >=0.0.10.1 && <0.1 - file-embed >=0.0.10.1 && <0.1
- foreign-store >=0.2 && <0.3 - foreign-store >=0.2 && <0.3
- gitrev >=1.3.1 && <1.4
- gogol >=0.3.0 && <0.4 - gogol >=0.3.0 && <0.4
- gogol-apps-calendar >=0.3.0 && <0.4 - gogol-apps-calendar >=0.3.0 && <0.4
- hjsmin >=0.1 && <0.3 - hjsmin >=0.1 && <0.3
......
{ nixpkgs ? import <nixpkgs> {} (import ./default.nix).env
}:
(import ./default.nix { inherit nixpkgs; }).env
...@@ -146,13 +146,6 @@ getRobotsR :: Handler TypedContent ...@@ -146,13 +146,6 @@ getRobotsR :: Handler TypedContent
getRobotsR = getRobotsR =
return $ TypedContent typePlain $ toContent $(embedFile "config/robots.txt") return $ TypedContent typePlain $ toContent $(embedFile "config/robots.txt")
getVersionR :: Handler Text getVersionR :: Handler TypedContent
getVersionR getVersionR =
-- req <- reqWaiRequest <$> getRequest redirect $ StaticR version_txt
-- let hs = foldMap (\(h,v) -> tshow h <> ": " <> tshow v <> "\n") $ Network.Wai.requestHeaders req
= do
return $
$(gitHash) <>
if $(gitDirty)
then "+"
else ""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment