samedi 28 février 2015

StrongLoop deployment

I want to install a service in AWS as below command since i have two apps needs to be hosted in the same server. I am able to deploy an app in the default service strong-pm. But when i try to create a new service as below


sudo slc pm-install --upstart 0.6 --user manhunt-pm --port 6666 --job-file /etc/init/manhunt-pm.conf


The service gets started. But when i try to deploy the tar file, I am getting the following error


Deploy /home/ec2-user/manhunt-0.0.0.tgz to http://localhost:6666 failed: read ECONNRESET


From the aws log, i see the following message



Feb 27 05:50:05 ip-172-31-28-147 strong-pm: TypeError: Object #<Object> has no method 'sendError'</b>
Feb 27 05:50:05 ip-172-31-28-147 strong-pm: at /usr/lib/node_modules/strongloop/node_modules/strong-pm/lib/pack-receiver.js:94:12
Feb 27 05:50:05 ip-172-31-28-147 strong-pm: at /usr/lib/node_modules/strongloop/node_modules/mkdirp/index.js:46:53
Feb 27 05:50:05 ip-172-31-28-147 strong-pm: at Object.oncomplete (fs.js:107:15)
Feb 27 05:50:05 ip-172-31-28-147 strong-pm:
Feb 27 05:50:05 ip-172-31-28-147 init: manhunt-pm main process (13087) terminated with status 8
Feb 27 05:50:05 ip-172-31-28-147 init: manhunt-pm main process ended, respawning
Feb 27 05:50:05 ip-172-31-28-147 su: (to manhunt-pm) root on none
Feb 27 05:50:10 ip-172-31-28-147 strong-pm: sl-pm.js: control listening on path `/var/lib/manhunt-pm/pmctl`
Feb 27 05:50:10 ip-172-31-28-147 strong-pm: sl-pm.js: listen on 6666, work base is `/var/lib/manhunt-pm/.strong-pm` with config `/var/lib/manhunt-pm/.strong-pm/config`


Am I missing something? Or is there any other way that I want to host two different apps in the same server in different port say 3000 and 3001. Please help.


Aucun commentaire:

Enregistrer un commentaire