Commit ca5d3d60 authored by Nicolas Pouillard's avatar Nicolas Pouillard

app/Main & connectGargandb

parent 2562402a
module Main where module Main where
import Gargantext.Parser.Wos (parseWos) import Data.Gargantext.Server (startGargantext)
main :: IO () main :: IO ()
main = parseWos "/tmp/DeepNeuralNetworkFull.zip" main = startGargantext
...@@ -44,11 +44,13 @@ server conn ...@@ -44,11 +44,13 @@ server conn
where where
echo s = pure s echo s = pure s
connectGargandb :: IO Connection
connectGargandb = connect infoGargandb
startGargantext :: IO () startGargantext :: IO ()
startGargantext = do startGargantext = do
print ("Starting server on port " ++ show port) print ("Starting server on port " ++ show port)
conn <- connect infoGargandb conn <- connectGargandb
run port $ app conn run port $ app conn
where where
port = 8008 port = 8008
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment