-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
config server #22
Comments
Can you provide the config file? And the require line in the index.js? |
How awesome is.. when I'm onnnet lecture... both production and the
staging was working fornport 3000,3001 &5000,5001...
Things are just now happening
...
Must be a wrong directory or.. couldn't figr out wt ws went wrong which I
honestly troubled for several days. !
Finaly it is just now get OK... fully working 💪
Thanks John for start supporting...
Regarding the export - import.. I think with new Node/express versions it
may need
proper element to detect within file.
…On Fri, 8 Jan 2021, 03:56 John, ***@***.***> wrote:
Can you provide the config file? And the require line in the index.js?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARRWY6YYAE5SCUY7FRWTYQ3SYYYJRANCNFSM4VZSGAVA>
.
|
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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;
`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?
The text was updated successfully, but these errors were encountered: