DEV Community

Discussion on: Spring Cloud Config Server: Step by Step

 
hendisantika profile image
Hendi Santika

Hi Mark,

  1. I was trying to use yml file only but it fails. Then I try to use properties file its working fine.
  2. I was check using yamllint.com it is said valid.
  3. I don't know it's not coming the result.
  4. Still error on my local. I already pushed new file.
  5. Previously I tried like that but still error. Now I am rolling back to use bank-account-service-dev.yml & bank-account-service-uat.yml but still error.

Cannot pull from remote gitlab.com/microservice-samples/mi..., the working tree is not clean.

Thread Thread
 
markbdsouza profile image
Mark Dsouza

Hmm any changes to your git repo containing these files, make sure you do a git add and git commit and then restart your cloud config server for it to reflect properly
Also one other thing with the yml file is you don't need the
spring:
config:
activate:
on-profile: dev
if you follow the naming convention.
All you need to do is set the profile for the microservice of the bank-account-service when you run it.

Thread Thread
 
hendisantika profile image
Hendi Santika

It's working now. I am using Spring Cloud Native with File Backend.
Git Backend is to much error for me.

Thank for your support.

Thread Thread
 
markbdsouza profile image
Mark Dsouza

Awesome !