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 settings changes

See original GitHub issue

Hi Karol,

Basically this is what I do I build the Vue project that emits the app.js, manifest.js and vendor.js files. I refer these files in a different project (I have used Vue Custom Element). In my Vue Project i have an api url which also gets bundled when you build the Vue js file.

module.exports = {
  NODE_ENV: '"production"',
  BASE_URL : '"https://localhost/VueAPI/"'
}

For my development server it is fine. I have also seen the concept of dev and prod.env files. But still i dont think so that will help me. Because we are deploying the built files using octopus. So based upon the deployment server we have to change the config url. How can i achieve this. If i change the config url I need to rebuild and then get the files and once again i have to update the files in the project where i have used right.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:29 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
Meenakshisecommented, Apr 19, 2018

I have done this Karol. I created a variable in env.js file like the below. And i am replacing this variable in octopus based upon the deployment server. There is a file substitution variable feature in octopus. With that i am able to replace.

BASE_URL : '"#{WidgetApiUrl}"'

😃

0reactions
Meenakshisecommented, Apr 20, 2018

Thanks a lot Karol for answering my queries with so much patience 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and Modify Environment Variables on Windows
Create and Modify Environment Variables on Windows · On the Windows taskbar, right-click the Windows icon and select System. · In the Settings...
Read more >
How to change environment variables on Windows 10
Open the Start Search, type in “env”, and choose “Edit the system environment variables”: Screenshot of Start Search · Click the “Environment ......
Read more >
How to Edit Environment Variables on Windows 10 or 11
To configure your environment variables, click the Start button, then type “environment properties” into the search bar and hit Enter. In the ...
Read more >
How to set the path and environment variables in Windows
In the Environment Variables window (pictured below), highlight the Path variable in the System variables section and click the Edit button. Add ...
Read more >
How do I set or change the PATH system variable? - Java
Click Environment Variables. In the section System Variables find the PATH environment variable and select it. Click Edit. If the PATH environment variable...
Read more >

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