on master help sign in
Log the backend port (useful for tests)
commit0e646579a5b3d7b2181210b601f8cc05fdde8a38 authorTom Smalley <tfsmalley@gmail.com> dateThu 17 May 2018, 16:16 (8 years ago) parentfab0321
1 file changed+1
lib/run/src/Obelisk/Run.hs+1
lib/run/src/Obelisk/Run.hs+1
@@ -39,6 +39,7 @@ run :: Int -- ^ Port to run the backend
3939run port backend frontend = do
4040 let handleBackendErr (_ :: SomeException) = hPutStrLn stderr "backend stopped; make a change to your code to reload"
4141 backendTid <- forkIO $ handle handleBackendErr $ withArgs ["--quiet", "--port", show port] backend
42+ putStrLn $ "Backend running on port " <> show port
4243 let conf = defRunConfig { _runConfig_redirectPort = port }
4344 runWidget conf frontend
4445 killThread backendTid