Skip to content

Instantly share code, notes, and snippets.

@jakepeyser
Last active August 29, 2015 14:17
Show Gist options
  • Save jakepeyser/237fc1343507ba391e11 to your computer and use it in GitHub Desktop.
Save jakepeyser/237fc1343507ba391e11 to your computer and use it in GitHub Desktop.
Auto-Scaling Demo Gists
require('newrelic'); // Add this line here
var express = require('express'),
bodyParser = require("body-parser"),
methodOverride = require("method-override"),
cf api https://api.ng.bluemix.net/
cf login -u <username> -o <orgname> -s <space>
cf push
---
applications:
- name: SampleApp # Replace with your app name
framework: node
runtime: node10
memory: 128M
instances: 1
host: sampleapp # Replace with your desired host name
path: .
command: node app.js
"name": "SampleApp",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment