Hi,
I've followed the instructions in the documentation to deploy a LoopBack app with the StrongLoop Process Manager. Here's what I've done so far:
On the remote server (Debian 8):
1. installed node, strongloop, strong-pm
2. Installed and started the strong-pm service using systemd
3. slc ctl status shows "no services exist" which is ok at this point.
On my local machine (Ubuntu 14.04):
1. Installed node, strongloop, strong-pm.
2. Created an API with a postgres back-end, commited it to git.
3. `slc build` created a the "deploy" git branch.
4. `slc deploy http+ssl://my.server` echoed "Deployed `deploy` as `my-app` to http+ssl://my.server
Back on the server I verified that some entries were created in /var/lib/strong-pm/strong-pm.json. Notice there is no path for where the app files were copied.
"ServerService": {
"1": "{\"name\":\"cantoalegre-test\",\"env\":{},\"_groups\":[{\"name\":\"default\",\"scale\":1,\"id\":1}],\"id\":1}"},
}
And also the app files were copied to /var/lib/strong-pm/svc/1/work/...
Back on the local machine:
`slc ctl -C http+ssl://my.server start my-app` gives me the following error:
Service: "my-app"
Instance Response
1 no current application
Command "start" on "http://127.0.0.1:46840" failed with error Other things I've tried:1. Ran strong-pm manually on my local machine, cd to app, slc start -> App runs fine on process manager.
2. Manually cloned app repo on server in /home/user/my-app, started process manager service, cd to app, slc start -> App runs fine on process manager. Entry created on strong-pm.json file does include path of the app. However, subsequent deploys from local machine do not actually start the app from the newly deployed dir (/var/lib/strong-pm/svc/1/work)
Can some one please help me figure out what is going wrong in this set up? I want to automate my deploys with the Process Manager.
One aditional question: Systemd starts the PM service on machine boot, but, how do you start an app within PM on machine boot?