Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
1622dcfa
Commit
1622dcfa
authored
Feb 07, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] adding port number as parameter when starting the server.
parent
16152799
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
README.md
README.md
+2
-1
Main.hs
app/Main.hs
+3
-3
Server.hs
src/Gargantext/Server.hs
+2
-4
No files found.
README.md
View file @
1622dcfa
...
...
@@ -11,6 +11,7 @@ sudo apt-get install libbz2-dev lipq-dev
# Starting
stack ghci
startGargantext "gargantext.ini"
startGargantext 8008 "gargantext.ini"
app/Main.hs
View file @
1622dcfa
...
...
@@ -4,10 +4,10 @@ module Main where
import
Gargantext.Prelude
import
Gargantext.Server
(
startGargantext
)
import
Text.Read
(
read
)
import
System.Environment
(
getArgs
)
main
::
IO
()
main
=
do
(
iniFile
:
_
)
<-
getArgs
startGargantext
iniFile
(
port
:
iniFile
:
_
)
<-
getArgs
startGargantext
(
read
port
::
Int
)
iniFile
src/Gargantext/Server.hs
View file @
1622dcfa
...
...
@@ -60,16 +60,14 @@ server conn
where
echo
s
=
pure
s
startGargantext
::
FilePath
->
IO
()
startGargantext
file
=
do
startGargantext
::
Int
->
FilePath
->
IO
()
startGargantext
port
file
=
do
print
(
"Starting server on port "
<>
show
port
)
param
<-
databaseParameters
file
conn
<-
connect
param
run
port
$
app
conn
where
port
=
8008
-- | TODO App type, the main monad in which the bot code is written with.
-- Provide config, state, logs and IO
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment