Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mehrotra-prateek opened this issue Apr 28, 2016 · 0 comments

Comments

@mehrotra-prateek
Copy link

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 [email protected] No repository field.
npm WARN [email protected] 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"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant