Skip to content

how to use the sample when using it with offline nodejs buildpack  #1

@mehrotra-prateek

Description

@mehrotra-prateek

Hello,

It is not an issue but listing my experience of using the sample app as test artifact whist setting up a pipeline to update offline buildpack behind a proxy. You may want to enhance your README with it.

  • In an offline buildpack scenario, you have to bundle your dependencies with the app and then run cf push. You will have to do the following for it
  1. Remove .cfignore or its content
  2. Run 'npm install' in the directory where you have cloned the code. You will see following warnings
npm WARN cf-nodejs@1.0.0 No repository field.
npm WARN cf-nodejs@1.0.0 No license field.

and may want to update package.json with following

,
  "repository": {
    "type": "git",
    "url": "cf-nodejs"
  },
  "license": "ISC",
  1. Specify the version of node.js, npm in your package.json e.g.
,
  "engines": {
    "node": "0.12.7",
    "npm": "2.7.4"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions