Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
148
Issues
148
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
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
gargantext
haskell-gargantext
Commits
deb4c70e
Commit
deb4c70e
authored
Apr 16, 2024
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/177-welcome-door-to-enter-the-project-2' into dev
parents
938aed23
ce2427da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
API.hs
src/Gargantext/API.hs
+7
-3
start
start
+7
-1
No files found.
src/Gargantext/API.hs
View file @
deb4c70e
...
...
@@ -85,9 +85,13 @@ startGargantext mode port file = withLoggerHoisted mode $ \logger -> do
portRouteInfo
::
PortNumber
->
IO
()
portRouteInfo
port
=
do
putStrLn
" ----Main Routes----- "
putStrLn
$
"http://localhost:"
<>
toUrlPiece
port
<>
"/index.html"
putStrLn
$
"http://localhost:"
<>
toUrlPiece
port
<>
"/swagger-ui"
putStrLn
"=========================================================================================================="
putStrLn
" GarganText Main Routes"
putStrLn
"=========================================================================================================="
putStrLn
$
" - Web GarganText Frontend..................: "
<>
"http://localhost:"
<>
toUrlPiece
port
<>
"/index.html"
putStrLn
$
" - Swagger UI (API documentation)...........: "
<>
"http://localhost:"
<>
toUrlPiece
port
<>
"/swagger-ui"
putStrLn
$
" - Playground GraphQL (API documentation)...: "
<>
"http://localhost:"
<>
toUrlPiece
port
<>
"/gql"
putStrLn
"=========================================================================================================="
-- | Stops the gargantext server and cancels all the periodic actions
-- scheduled to run up to that point.
...
...
start
View file @
deb4c70e
#!/bin/bash
FOLDER
=
"logs"
FILE
=
$(
date
+%Y%m%d%H%M.log
)
LOGFILE
=
$FOLDER
"/"
$FILE
mkdir
-p
$FOLDER
echo
"GarganText: Starting project..."
echo
"GarganText: First, compiling code..."
bin/install
...
...
@@ -10,7 +16,7 @@ docker compose up -d
echo
"GarganText: docker for postgresql database [OK]"
cd
../../
echo
"GarganText: gargantext-server with Nix and Cabal..."
nix-shell
--run
"cabal run gargantext-server -- --ini gargantext.ini --run Prod"
nix-shell
--run
"cabal run gargantext-server -- --ini gargantext.ini --run Prod
+RTS >
$LOGFILE
2>&1 & tail -F
$LOGFILE
"
echo
"GarganText: gargantext-server with Nix and Cabal [OK]"
echo
"GarganText: project stopped."
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