mirror of https://github.com/voidlizard/hbs2
Fix dashboard config `develop-assets` option
This commit is contained in:
parent
9640543924
commit
85f3053d85
|
@ -394,8 +394,6 @@ runDashboardWeb WebOptions{..} = do
|
||||||
|
|
||||||
runScotty :: DashBoardPerks m => DashBoardM m ()
|
runScotty :: DashBoardPerks m => DashBoardM m ()
|
||||||
runScotty = do
|
runScotty = do
|
||||||
pno <- getHttpPortNumber
|
|
||||||
wo <- WebOptions <$> getDevAssets
|
|
||||||
|
|
||||||
env <- ask
|
env <- ask
|
||||||
|
|
||||||
|
@ -407,6 +405,9 @@ runScotty = do
|
||||||
|
|
||||||
run theDict conf
|
run theDict conf
|
||||||
|
|
||||||
|
pno <- getHttpPortNumber
|
||||||
|
wo <- WebOptions <$> getDevAssets
|
||||||
|
|
||||||
flip runContT pure do
|
flip runContT pure do
|
||||||
void $ ContT $ withAsync updateIndexPeriodially
|
void $ ContT $ withAsync updateIndexPeriodially
|
||||||
void $ ContT $ withAsync runRPC
|
void $ ContT $ withAsync runRPC
|
||||||
|
@ -659,7 +660,8 @@ theDict = do
|
||||||
developAssetsEntry = do
|
developAssetsEntry = do
|
||||||
entry $ bindMatch "develop-assets" $ nil_ \case
|
entry $ bindMatch "develop-assets" $ nil_ \case
|
||||||
[StringLike s] -> do
|
[StringLike s] -> do
|
||||||
pure ()
|
devAssTVar <- lift $ asks _dashBoardDevAssets
|
||||||
|
atomically $ writeTVar devAssTVar (Just s)
|
||||||
|
|
||||||
_ -> none
|
_ -> none
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue