GithubHelp home page GithubHelp logo

Comments (5)

dfirsht avatar dfirsht commented on May 1, 2024

Comment by rfdickerson
Thursday Jan 14, 2016 at 17:07 GMT


It would be nice if there was something like cfenv package that exists in NodeJS for Cloud Foundary platforms that makes it easier to read environment variables related to the authentication and database names.

One thing that I think that we can do better than cfenv is to be able to switch between production mode and development mode. If the developer is running the web app locally on the development machine, it would use hardcoded values for auth and db names and IP addresses, however when deployed on Bluemix or another server, it can switch to using environment variables.

from kitura.

dfirsht avatar dfirsht commented on May 1, 2024

Comment by rfdickerson
Thursday Jan 14, 2016 at 17:12 GMT


For the time being, we can just use: NSProcessInfo for reading env. vars.

from kitura.

dfirsht avatar dfirsht commented on May 1, 2024

Comment by ricardo-olivieri
Thursday Jan 14, 2016 at 19:42 GMT


Good points! As a reference for ourselves, just providing here the link to the documentation cloud foundry provides for VCAP_SERVICES environment variable - http://docs.run.pivotal.io/devguide/deploy-apps/environment-variable.html#VCAP-SERVICES

To Robert's point above, we would need to double check if we can access the VCAP-SERVICES env variable through NSProcessInfo.

from kitura.

rfdickerson avatar rfdickerson commented on May 1, 2024

We should follow cfenv Node Package API very similarly, since that's what developers are used to using.

from kitura.

rfdickerson avatar rfdickerson commented on May 1, 2024

This is a duplicate of @rolivieri issue where he's creating a CFenv, right?

from kitura.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.