Deploying Dashboard
Issue #106
resolved
I'm trying to package and deploy my dashboard via IBM BlueMix.
How do I package atlasboard and include the global dependencies as local?
How do I run the board as the usual "atlasboard start" won't work any more?
Comments (3)
-
reporter -
reporter - changed status to resolved
-
You can also create a
start.js
file like this:var atlasboard = require('atlasboard'); atlasboard({port: 3000}, function (err) { if (err) { throw err; } });
and then use:
"scripts":{ "start":"node start" }
in your
package.json
. (you will also need to add theatlasboard
dependency)You'll need to just to use
process.env
to get the port number.I will make sure some additional documentation get added to make this clearer
- Log in to comment
After packing dependencies as local rather than global discovered that bluemix requires node applications to start on a specific port which is specified in an envrionment variable, my solution was to add this to package.json:
And this to start.sh: