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 = {
},
{
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 &
......
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