question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Environment variables not populated in .env

See original GitHub issue

Using React + Node.js with MongoDB flavor of Cosmos db.

Below is what my .env file looks like. Even though a database was successfully created and deployed, the configuration was not updated.

Web Template Studio will automatically add Cosmos Keys to this file once your database has been deployed.
To manually retrieve your Cosmos database connection string and keys, follow these docs (https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-mongoose)

COSMOSDB_CONNSTR=mongodb://{cosmos-user}.documents.azure.com:10255/{dbname}
COSMOSDB_USER=cosmos-user
COSMOSDB_PASSWORD=cosmos-secret

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
henryjwcommented, Oct 8, 2019

I created a new project and can confirm that the popup appeared. The .env file was populated as expected.

0reactions
AndreMazcommented, Sep 30, 2019

@henryjw I’ve also had an impression that something went wrong when WebTS was creating CosmosDB instance. It took around 2 minutes to show the popup that @dgomezc is referring to. But in the end it worked well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found