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.

Unable to make it work

See original GitHub issue

Hello, thanks for the initiative of creating this dependency. It’s an issue I’ve been facing ever since I started working with springboot (since I come from a nodejs background) However, I tried adding the dependency to a simple maven based project but wasn’t able to make it work after all.

  • So here is a snippet of my application.yml file that contains the various project configs.
server:
   port: ${PIMPIM_REGISTRY_PORT:8761}
  • The content of the .env file is this: PIMPIM_REGISTRY_PORT=9999
  • And here, a snippet of my pom.xml file
<repositories>
  <repository>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
    <id>central</id>
    <name>bintray</name>
    <url>https://jcenter.bintray.com</url>
  </repository>
</repositories>
<dependencies>
  <dependency>
    <groupId>me.paulschwarz</groupId>
    <artifactId>spring-dotenv</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
  </dependency>
</dependencies>

However when I run the project, my server still starts on default port 8761 rather than 9999 as precised in the .env file image

Along with this message that make me feel like there’s something not done right. image

Thanks for any help!!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
paulschwarzcommented, Oct 20, 2020
1reaction
Henriquelaycommented, Oct 14, 2020

Also had this issue. This solved beautifully after struggling a bit to setup bintray.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Which is correct “I can't make it work” or “I can't make it to work”?
In “I can't make it work,” “work” is a verbal, a “bare” infinitive without the “to” sign, as is usual after “make”; in...
Read more >
Unable to Work Definition | Law Insider
Unable to Work means that work is assigned and scheduled but the employee cannot perform the work remotely. It does not mean that...
Read more >
Why Can't We Make It Work - YouTube
Provided to YouTube by Blaufield MusicWhy Can't We Make It Work · Booka Shade · Laudic · Walter Merziger · Arno Kammermeier ·...
Read more >
Why can't I just WORK??? - procrastination job failure
The only thing that has worked is giving myself permission to fail, giving myself permission to do something less-than-perfectly IF I try. Give ......
Read more >
What To Do When You Feel Like You Are Failing At Work
Learning to deal better with breakdowns and failures at work can help you regain power and get your feet back under you.
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