updates to registry resource path

This commit is contained in:
Aaron Greenspan
2019-12-24 15:09:07 -07:00
parent 57f86ac052
commit 228264ebb5
2 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ configPath :: FilePath
configPath = "./config" configPath = "./config"
resourcesPath :: FilePath resourcesPath :: FilePath
resourcesPath = "./resources" resourcesPath = "/var/www/html/resources"
registryVersion :: AppVersion registryVersion :: AppVersion
registryVersion = fromJust . parseMaybe parseJSON . String . toS . showVersion $ version registryVersion = fromJust . parseMaybe parseJSON . String . toS . showVersion $ version

View File

@@ -11,6 +11,7 @@ import Yesod.Core
import Data.Text (isSuffixOf) import Data.Text (isSuffixOf)
import Constants
import Lib.Semver import Lib.Semver
import Lib.Types.Semver import Lib.Types.Semver
import Util.Function import Util.Function
@@ -31,10 +32,10 @@ instance PathPiece S9PK where
toPathPiece = show toPathPiece = show
appResourceDir :: FilePath appResourceDir :: FilePath
appResourceDir = "./resources/apps" appResourceDir = resourcesPath </> "apps"
sysResourceDir :: FilePath sysResourceDir :: FilePath
sysResourceDir = "./resources/sys" sysResourceDir = resourcesPath </> "sys"
appManifestPath :: FilePath appManifestPath :: FilePath
appManifestPath = appResourceDir </> "apps.yaml" appManifestPath = appResourceDir </> "apps.yaml"