mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 19:54:47 +00:00
fixes image path
This commit is contained in:
@@ -11,8 +11,8 @@ import Startlude
|
|||||||
sslPath :: FilePath
|
sslPath :: FilePath
|
||||||
sslPath = "/var/ssl"
|
sslPath = "/var/ssl"
|
||||||
|
|
||||||
resourcesPath :: FilePath
|
resourcesDir :: FilePath
|
||||||
resourcesPath = "/var/www/html/resources"
|
resourcesDir = "/var/www/html/resources"
|
||||||
|
|
||||||
registryVersion :: AppVersion
|
registryVersion :: AppVersion
|
||||||
registryVersion = fromJust . parseMaybe parseJSON . String . toS . showVersion $ version
|
registryVersion = fromJust . parseMaybe parseJSON . String . toS . showVersion $ version
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import qualified GHC.Show (Show (..))
|
|||||||
import System.Directory
|
import System.Directory
|
||||||
import Yesod.Core
|
import Yesod.Core
|
||||||
|
|
||||||
|
import Constants
|
||||||
import Foundation
|
import Foundation
|
||||||
import Handler.Types.Status
|
import Handler.Types.Status
|
||||||
import Lib.Registry
|
import Lib.Registry
|
||||||
@@ -39,7 +40,7 @@ getAppsManifestR :: Handler TypedContent
|
|||||||
getAppsManifestR = respondSource typePlain $ CB.sourceFile appManifestPath .| awaitForever sendChunkBS
|
getAppsManifestR = respondSource typePlain $ CB.sourceFile appManifestPath .| awaitForever sendChunkBS
|
||||||
|
|
||||||
getImageR :: Handler TypedContent
|
getImageR :: Handler TypedContent
|
||||||
getImageR = getApp sysResourceDir ("image" :: Extension "")
|
getImageR = getApp resourcesDir ("sys" :: Extension "tar.gz")
|
||||||
|
|
||||||
getAgentR :: Handler TypedContent
|
getAgentR :: Handler TypedContent
|
||||||
getAgentR = getApp sysResourceDir ("agent" :: Extension "")
|
getAgentR = getApp sysResourceDir ("agent" :: Extension "")
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ import Lib.Semver
|
|||||||
import Lib.Types.Semver
|
import Lib.Types.Semver
|
||||||
|
|
||||||
appResourceDir :: FilePath
|
appResourceDir :: FilePath
|
||||||
appResourceDir = resourcesPath </> "apps"
|
appResourceDir = resourcesDir </> "apps"
|
||||||
|
|
||||||
sysResourceDir :: FilePath
|
sysResourceDir :: FilePath
|
||||||
sysResourceDir = resourcesPath </> "sys"
|
sysResourceDir = resourcesDir </> "sys"
|
||||||
|
|
||||||
iconsResourceDir :: FilePath
|
iconsResourceDir :: FilePath
|
||||||
iconsResourceDir = resourcesPath </> "icons"
|
iconsResourceDir = resourcesDir </> "icons"
|
||||||
|
|
||||||
appManifestPath :: FilePath
|
appManifestPath :: FilePath
|
||||||
appManifestPath = appResourceDir </> appManifestFile
|
appManifestPath = appResourceDir </> appManifestFile
|
||||||
|
|||||||
Reference in New Issue
Block a user