Skip to content
Snippets Groups Projects
Commit 1dddb48c authored by Yuci Gou's avatar Yuci Gou
Browse files

#487 Manage PubSweet server using pm2

parent 02dbe07d
No related branches found
No related tags found
2 merge requests!114Shared data model,!115Dev
...@@ -8,12 +8,12 @@ const pm2Config = { ...@@ -8,12 +8,12 @@ const pm2Config = {
}, },
{ {
name: 'ftpBulkMonitor', name: 'ftpBulkMonitor',
script: 'server/ftp-integration/api', script: './server/ftp-integration/api.js',
instances: 1, instances: 1,
}, },
{ {
name: 'ftpTaggerMonitor', name: 'ftpTaggerMonitor',
script: 'server/ftp-integration/taggedXML', script: './server/ftp-integration/taggedXML.js',
instances: 1, instances: 1,
}, },
], ],
......
...@@ -5,12 +5,6 @@ echo "Running cron service" ...@@ -5,12 +5,6 @@ echo "Running cron service"
env | cat - /etc/cron.d/crontab > temp && crontab temp env | cat - /etc/cron.d/crontab > temp && crontab temp
service cron start service cron start
echo "Running ftp bulk upload monitor"
pm2 start ftpBulkMonitor
echo "Running ftp taggers upload monitor"
pm2 start ftpTaggerMonitor
echo "Running Seed" echo "Running Seed"
yarn seed yarn seed
......
#!/bin/bash #!/bin/bash
echo "Running server in the background" echo "Running server in the background"
cmd="pm2 start pubsweet" cmd="pm2 start pm2.config.js"
$cmd & $cmd &
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment