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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
10
Merge Requests
10
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
ce2427da
Commit
ce2427da
authored
Apr 11, 2024
by
Fabien Manière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update start command
parent
6e07f6c5
Pipeline
#5901
passed with stages
in 182 minutes and 22 seconds
Changes
2
Pipelines
1
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 @
ce2427da
...
...
@@ -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 @
ce2427da
#!/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