]> Git — Sourcephile - gargantext.git/blob - app/Main.hs
[FIX] adding port number as parameter when starting the server.
[gargantext.git] / app / Main.hs
1 {-# LANGUAGE NoImplicitPrelude #-}
2
3 module Main where
4
5 import Gargantext.Prelude
6 import Gargantext.Server (startGargantext)
7 import Text.Read (read)
8 import System.Environment (getArgs)
9
10 main :: IO ()
11 main = do
12 (port:iniFile:_) <- getArgs
13 startGargantext (read port :: Int) iniFile