Commit 1dddb48c authored by Yuci Gou's avatar Yuci Gou

#487 Manage PubSweet server using pm2

parent 02dbe07d
Pipeline #11882 passed with stages
in 5 minutes and 25 seconds
......@@ -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,
},
],
......
......@@ -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
......
#!/bin/bash
echo "Running server in the background"
cmd="pm2 start pubsweet"
cmd="pm2 start pm2.config.js"
$cmd &
......
Markdown is supported
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