Skip to content

Commit

Permalink
dont commit the static dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Sydney Kerckhove committed Mar 26, 2024
1 parent c581695 commit 0801f05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion smos-web-server/src/Smos/Web/Server/SmosSession.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ withPlaygroundSession relFile func =
withPlaygroundDir :: forall m a. (MonadUnliftIO m) => (Path Abs Dir -> m a) -> m a
withPlaygroundDir func = withRunInIO $ \runInIO ->
withSystemTempDir "smos-web-server-playground" $ \tempDir ->
runInIO $ bracket_ (ensureDir tempDir) (removeDirRecur tempDir) (func (toWorkflowDir tempDir))
runInIO $
bracket_
(ensureDir tempDir)
(removeDirRecur tempDir)
(func (toWorkflowDir tempDir))

toWorkflowDir :: Path Abs Dir -> Path Abs Dir
toWorkflowDir = (</> [reldir|workflow|])
Expand Down

0 comments on commit 0801f05

Please sign in to comment.