updates to registry resource path

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

View File

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

View File

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