Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xpub-epmc
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Literature-services
public-projects
xpub-epmc
Commits
4bfd9893
Commit
4bfd9893
authored
6 years ago
by
Yuci Gou
Browse files
Options
Downloads
Patches
Plain Diff
#487 Manage PubSweet server using pm2
parent
1dddb48c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!114
Shared data model
,
!115
Dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrapperScript.sh
+4
-20
4 additions, 20 deletions
wrapperScript.sh
with
4 additions
and
20 deletions
wrapperScript.sh
+
4
−
20
View file @
4bfd9893
...
@@ -5,24 +5,8 @@ cmd="pm2 start pm2.config.js"
...
@@ -5,24 +5,8 @@ cmd="pm2 start pm2.config.js"
$cmd
&
$cmd
&
echo
"Wait up to 3 minutes for server to respond, check every 20 seconds"
echo
"Running post_init.sh script"
COUNTER
=
0
./post_init.sh
while
[
$COUNTER
-lt
15
]
;
do
RUNNING
=
$(
curl
--silent
--connect-timeout
20
"http://localhost/"
|
grep
"/assets/"
)
echo
"Initialization completed. PubSweet up running..."
if
[
-n
"
$RUNNING
"
]
;
then
tail
-f
/dev/null
echo
"xPub is running"
#echo "Creating the Users"
#node scripts/adduser.js rakeshnambiar rakeshnbr@ebi.ac.uk Password_01 false
echo
"Running post_init.sh script"
./post_init.sh
exit
0
fi
echo
"Waiting for xPub..."
sleep
20
let
COUNTER
=
COUNTER+1
done
echo
"ERROR: xPub is not running"
exit
1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment