Skip to content

config server #22

Description

@dcjayasuriya2020

2 things:
1.
when we have to export config file to index.js, code in config should mention correct module/
in this lecture the export "environmentToExport" does not directly noticed.. as if we use "config" inside index from config.js file, then within the config file there shuold be at least the word "config"
so to export I did: export const config = environmentToExport;

  1. on terminal (my OS is windows), NODE_ENV=staging (or production) does not detect at all... it gives only
    `NODE_ENV=staging node index.js NODE_ENV=staging : The term 'NODE_ENV=staging' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + NODE_ENV=staging node index.js + ~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (NODE_ENV=staging:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

I tried: $setNODE_ENV="production"` not working???

can someone fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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