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
1dddb48c
Commit
1dddb48c
authored
6 years ago
by
Yuci Gou
Browse files
Options
Downloads
Patches
Plain Diff
#487 Manage PubSweet server using pm2
parent
02dbe07d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!114
Shared data model
,
!115
Dev
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pm2.config.js
+2
-2
2 additions, 2 deletions
pm2.config.js
post_init.sh
+0
-6
0 additions, 6 deletions
post_init.sh
wrapperScript.sh
+1
-1
1 addition, 1 deletion
wrapperScript.sh
with
3 additions
and
9 deletions
pm2.config.js
+
2
−
2
View file @
1dddb48c
...
...
@@ -8,12 +8,12 @@ const pm2Config = {
},
{
name
:
'
ftpBulkMonitor
'
,
script
:
'
server/ftp-integration/api
'
,
script
:
'
./
server/ftp-integration/api
.js
'
,
instances
:
1
,
},
{
name
:
'
ftpTaggerMonitor
'
,
script
:
'
server/ftp-integration/taggedXML
'
,
script
:
'
./
server/ftp-integration/taggedXML
.js
'
,
instances
:
1
,
},
],
...
...
This diff is collapsed.
Click to expand it.
post_init.sh
+
0
−
6
View file @
1dddb48c
...
...
@@ -5,12 +5,6 @@ echo "Running cron service"
env
|
cat
- /etc/cron.d/crontab
>
temp
&&
crontab temp
service cron start
echo
"Running ftp bulk upload monitor"
pm2 start ftpBulkMonitor
echo
"Running ftp taggers upload monitor"
pm2 start ftpTaggerMonitor
echo
"Running Seed"
yarn seed
...
...
This diff is collapsed.
Click to expand it.
wrapperScript.sh
+
1
−
1
View file @
1dddb48c
#!/bin/bash
echo
"Running server in the background"
cmd
=
"pm2 start p
ubsweet
"
cmd
=
"pm2 start p
m2.config.js
"
$cmd
&
...
...
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