Skip to content

Console app wrapper to run Node.js background workers on AppHarbor

Notifications You must be signed in to change notification settings

csainty/NodeWorker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NodeWorker is a c# console application wrapper to run node.js code as a background worker on AppHarbor.

To use it, simple clone the project, add your node.js code into the app folder and push the whole thing to AppHarbor.

AppHarbor will build the exe and run it as per a regular c# background worker.

A couple of things to watch.

  • By default the command node app/index.js is run, if you need a different entry point or more arguments, make sure you add them.
  • Make sure the code in your app folder is set to copy into the build folder.
  • Your section will be copied into the node process.env hash similar to iisnode
  • There is no console logging supported. Howeveryou can use the logentries add-on from AppHarbor with the nodejs client provided by logentries if you need to track what is happening.

For an example of a worker that does logging. See https://github.com/csainty/NodeWorkerDemo

About

Console app wrapper to run Node.js background workers on AppHarbor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published