git - Spring Cloud Config Server + BitBucket -


i'm trying spring cloud's config server setup bitbucket private repository , haven't had luck. no matter configuration use, seem 404 returned when trying load configuration.

i've tried setting breakpoints in jgitenvironmentrepository never seems called outside of afterpropertiesset. if manually triggering findone(application,profile,label) while debugging, error branch name <null> not allowed. if specify "master" label property, dreaded ref master cannot resolved error.

the app loads fine no results. documentation i've read, seems should work out of box. appreciated.

bootstrap.yml

server:   port: 8888  spring:   application:     name: config-service   cloud:     bus.amqp.enabled: false     config:       enabled: false       failfast: true       server:         prefix: /configs         git :           uri: https://bitbucket.org/[team]/[repo].git           username: [user]           password: [pass] 

repo files

- demo.app.yml 

attempted url

http://localhost:8888/configs/demo.app

  1. you need add profile name url. default profile 'default'. http://localhost:8888/configs/demo.app/default

  2. this works 1.0.0.release version me, 1.0.1.release version found problem on windows (there problem file separators config server didn't find yaml files in local cloned repository). maybe related issue: spring cloud config | git based | not working on windows machine


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -