Comments (8)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/130344397
The labels on this github issue will be updated when the story is started.
from nodejs-buildpack.
@patapata23 can you please explain what it is you're trying to do?
Staging will always have VCAP_APPLICATION
set as an environment variable (even if it's just an empty hash), so if VCAP_APPLICATION
is missing, your environment is not truly emulating staging.
from nodejs-buildpack.
To add to that, a number of other buildpacks expect VCAP_APPLICATION
to be set as well.
Here's a Dockerfile that fully simulates staging and launching: https://github.com/sclevine/cflocal/blob/master/Dockerfile
from nodejs-buildpack.
@RochesterinNYC Thank you for your reply.
I'll trying to excute only unit-test in nodejs-buildpack environment.
when my envrironment is truly emulating staging envirionment, It will be executed in the order of the detect -> compile -> release .
I'll executing the only compile command in our concourse CI for unit-testing.
Certainly, This Issue is solved by setting the environment variable as you're right.
I want to know why you require New Relic library.
from nodejs-buildpack.
What do you mean by execute only unit-test? Do you mean you're only trying to execute the unit tests in the nodejs buildpack? i.e. https://github.com/cloudfoundry/nodejs-buildpack/tree/master/cf_spec/unit ?
What exactly are you unit testing?
I'm not sure you what you mean by requiring the New Relic library.
from nodejs-buildpack.
What exactly are you unit testing?
I use this buildpack in Concourse CI, not in CloudFondry environment.
So, there is no VCAP_APPLICATION.
I compile my own app with nodejs-buildpack, then I execute unit-tests in my app.
I'm not sure you what you mean by requiring the New Relic library.
when excuting compile, New Relic is always installed.
I do not know why New Relic is always installed.
Because did not install the New Relic, heroku.
https://github.com/heroku/heroku-buildpack-nodejs/blob/master/bin/compile
from nodejs-buildpack.
You're using the nodejs buildpack to stage apps on Concourse? If that's the case, I wouldn't refer to these Cloud Foundry buildpacks as generic enough that they can stage any app on any environment. They're attuned to Cloud Foundry and they are Cloud Foundry buildpacks, so you'd need to either fork the buildpack and remove Cloud Foundry specific nuances or alter your staging environment to emulate the Cloud Foundry staging environment.
The NewRelic library is not included as part of the nodejs-buildpack at all. The NewRelic client library is contained in a newrelic.js
file that users include in their applications. We only have support in the buildpack to set some New Relic environment variables if your app binds to a New Relic service broker. I'm not sure what you're referring to.
from nodejs-buildpack.
@RochesterinNYC
Your explanation was understanding. And polite reply thanks.
I'll try to test by setting the staging environment in concourseCI.
About NewRelic library, it had been the understanding that I was wrong. I'm sorry.
Thank you very much.
from nodejs-buildpack.
Related Issues (20)
- BuildpackCompileFailed - Cf push sometimes fails on download go without an error message
- Release: nodejs-buildpack (Oct) HOT 1
- Weird no space left error when pushing nextjs app HOT 1
- nodejs_buildpack-v1_8_14 errors
- Deployment of native binary and node addon fails HOT 1
- Release: nodejs-buildpack (Nov) HOT 3
- Please keep nodejs 18.18.0 until bug in nodejs >= 18.18.2 is fixed (50263) HOT 1
- Go is downloaded multiple times HOT 2
- Release: nodejs-buildpack (Dec) HOT 1
- BOSH configured custom trusted certificate support
- Build pack fails on installing any new modules HOT 1
- Need a nginx buildpack with "stream_ssl_module" enabled
- Release: nodejs-buildpack (Jan) HOT 1
- Release: nodejs-buildpack (Feb) HOT 1
- Release: nodejs-buildpack (02-29) HOT 1
- Release: nodejs-buildpack (Mar)
- Release: nodejs-buildpack (03-14) HOT 1
- Release: nodejs-buildpack (03-28) HOT 1
- Release: nodejs-buildpack (04-11) HOT 1
- Release: nodejs-buildpack (04-25) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodejs-buildpack.