Scaffolding changes for Ctrl-C
This commit is contained in:
parent
c1ba0dc2fa
commit
a9f526bb39
@ -878,6 +878,7 @@ Production:
|
||||
web: ./dist/build/PROJECTNAME/PROJECTNAME production -p $PORT
|
||||
|
||||
{-# START_FILE devel.hs #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE PackageImports #-}
|
||||
import "PROJECTNAME" Application (getApplicationDev)
|
||||
import Network.Wai.Handler.Warp
|
||||
@ -887,8 +888,16 @@ import System.Directory (doesFileExist, removeFile)
|
||||
import System.Exit (exitSuccess)
|
||||
import Control.Concurrent (threadDelay)
|
||||
|
||||
#ifndef mingw32_HOST_OS
|
||||
import System.Posix.Signals (installHandler, sigINT, Handler(Catch))
|
||||
#endif
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
#ifndef mingw32_HOST_OS
|
||||
_ <- installHandler sigINT (Catch $ return ()) Nothing
|
||||
#endif
|
||||
|
||||
putStrLn "Starting devel application"
|
||||
(port, app) <- getApplicationDev
|
||||
forkIO $ runSettings (setPort port defaultSettings) app
|
||||
|
||||
@ -908,6 +908,7 @@ Production:
|
||||
web: ./dist/build/PROJECTNAME/PROJECTNAME production -p $PORT
|
||||
|
||||
{-# START_FILE devel.hs #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE PackageImports #-}
|
||||
import "PROJECTNAME" Application (getApplicationDev)
|
||||
import Network.Wai.Handler.Warp
|
||||
@ -917,8 +918,16 @@ import System.Directory (doesFileExist, removeFile)
|
||||
import System.Exit (exitSuccess)
|
||||
import Control.Concurrent (threadDelay)
|
||||
|
||||
#ifndef mingw32_HOST_OS
|
||||
import System.Posix.Signals (installHandler, sigINT, Handler(Catch))
|
||||
#endif
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
#ifndef mingw32_HOST_OS
|
||||
_ <- installHandler sigINT (Catch $ return ()) Nothing
|
||||
#endif
|
||||
|
||||
putStrLn "Starting devel application"
|
||||
(port, app) <- getApplicationDev
|
||||
forkIO $ runSettings (setPort port defaultSettings) app
|
||||
|
||||
@ -932,6 +932,7 @@ Production:
|
||||
web: ./dist/build/PROJECTNAME/PROJECTNAME production -p $PORT
|
||||
|
||||
{-# START_FILE devel.hs #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE PackageImports #-}
|
||||
import "PROJECTNAME" Application (getApplicationDev)
|
||||
import Network.Wai.Handler.Warp
|
||||
@ -941,8 +942,16 @@ import System.Directory (doesFileExist, removeFile)
|
||||
import System.Exit (exitSuccess)
|
||||
import Control.Concurrent (threadDelay)
|
||||
|
||||
#ifndef mingw32_HOST_OS
|
||||
import System.Posix.Signals (installHandler, sigINT, Handler(Catch))
|
||||
#endif
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
#ifndef mingw32_HOST_OS
|
||||
_ <- installHandler sigINT (Catch $ return ()) Nothing
|
||||
#endif
|
||||
|
||||
putStrLn "Starting devel application"
|
||||
(port, app) <- getApplicationDev
|
||||
forkIO $ runSettings (setPort port defaultSettings) app
|
||||
|
||||
@ -882,6 +882,7 @@ Production:
|
||||
web: ./dist/build/PROJECTNAME/PROJECTNAME production -p $PORT
|
||||
|
||||
{-# START_FILE devel.hs #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE PackageImports #-}
|
||||
import "PROJECTNAME" Application (getApplicationDev)
|
||||
import Network.Wai.Handler.Warp
|
||||
@ -891,8 +892,16 @@ import System.Directory (doesFileExist, removeFile)
|
||||
import System.Exit (exitSuccess)
|
||||
import Control.Concurrent (threadDelay)
|
||||
|
||||
#ifndef mingw32_HOST_OS
|
||||
import System.Posix.Signals (installHandler, sigINT, Handler(Catch))
|
||||
#endif
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
#ifndef mingw32_HOST_OS
|
||||
_ <- installHandler sigINT (Catch $ return ()) Nothing
|
||||
#endif
|
||||
|
||||
putStrLn "Starting devel application"
|
||||
(port, app) <- getApplicationDev
|
||||
forkIO $ runSettings (setPort port defaultSettings) app
|
||||
|
||||
@ -756,6 +756,7 @@ Production:
|
||||
web: ./dist/build/PROJECTNAME/PROJECTNAME production -p $PORT
|
||||
|
||||
{-# START_FILE devel.hs #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE PackageImports #-}
|
||||
import "PROJECTNAME" Application (getApplicationDev)
|
||||
import Network.Wai.Handler.Warp
|
||||
@ -765,8 +766,16 @@ import System.Directory (doesFileExist, removeFile)
|
||||
import System.Exit (exitSuccess)
|
||||
import Control.Concurrent (threadDelay)
|
||||
|
||||
#ifndef mingw32_HOST_OS
|
||||
import System.Posix.Signals (installHandler, sigINT, Handler(Catch))
|
||||
#endif
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
#ifndef mingw32_HOST_OS
|
||||
_ <- installHandler sigINT (Catch $ return ()) Nothing
|
||||
#endif
|
||||
|
||||
putStrLn "Starting devel application"
|
||||
(port, app) <- getApplicationDev
|
||||
forkIO $ runSettings (setPort port defaultSettings) app
|
||||
|
||||
@ -878,6 +878,7 @@ Production:
|
||||
web: ./dist/build/PROJECTNAME/PROJECTNAME production -p $PORT
|
||||
|
||||
{-# START_FILE devel.hs #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE PackageImports #-}
|
||||
import "PROJECTNAME" Application (getApplicationDev)
|
||||
import Network.Wai.Handler.Warp
|
||||
@ -887,8 +888,16 @@ import System.Directory (doesFileExist, removeFile)
|
||||
import System.Exit (exitSuccess)
|
||||
import Control.Concurrent (threadDelay)
|
||||
|
||||
#ifndef mingw32_HOST_OS
|
||||
import System.Posix.Signals (installHandler, sigINT, Handler(Catch))
|
||||
#endif
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
#ifndef mingw32_HOST_OS
|
||||
_ <- installHandler sigINT (Catch $ return ()) Nothing
|
||||
#endif
|
||||
|
||||
putStrLn "Starting devel application"
|
||||
(port, app) <- getApplicationDev
|
||||
forkIO $ runSettings (setPort port defaultSettings) app
|
||||
|
||||
Loading…
Reference in New Issue
Block a user