feedhenry / fh-messaging

FeedHenry Messaging Server
Apache License 2.0
1 stars 25 forks source link

🍒 Rhmap 20884 cp 4.6 #72

Closed davidffrench closed 6 years ago

davidffrench commented 6 years ago

Jira link(s)

https://issues.jboss.org/browse/RHMAP-20884 https://issues.jboss.org/browse/RHMAP-20593

What

Cherry-pick of https://github.com/feedhenry/fh-messaging/pull/71 Update Dockerfile.dev to use forever npm Fixing the CMD in the Dockerfile.dev to run this component in debug mode.

Why

Having the component run in debug mode allows us to attach a remote debugger (e.g. from VS Code).

How

When using the forever module, running node in debug mode requires the command to be specified like so -c "node --debug"

Verification Steps

  1. Go to https://csteam2.skunkhenry.com:8443/console/project/rhmap-core/browse/rc/fh-messaging-2?tab=logs
  2. Verify that the top of the logs says Debugger listening on [::]:5858
  3. Go to https://csteam2.skunkhenry.com:8443/console/project/rhmap-core/browse/rc/fh-metrics-2?tab=logs
  4. Verify that the top of the logs says Debugger listening on [::]:5858
  5. Go to https://csteam2.skunkhenry.com:8443/console/project/rhmap-3-node-mbaas/browse/rc/fh-messaging-2?tab=logs
  6. Verify that the top of the logs says Debugger listening on [::]:5858
  7. Go to https://csteam2.skunkhenry.com:8443/console/project/rhmap-3-node-mbaas/browse/rc/fh-metrics-2?tab=logs
  8. Verify that the top of the logs says Debugger listening on [::]:5858

Checklist: