Skip to content

Commit 71a03fb

Browse files
committed
fix base-path
relate to #46
1 parent 0704d8c commit 71a03fb

File tree

5 files changed

+7
-21
lines changed

5 files changed

+7
-21
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ cache:
2222

2323
script:
2424
- set -e
25-
# Docker Login
26-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
2725
# Gradle
2826
- ./gradlew --console=plain test
2927
- ./gradlew --console=plain shadowJar
@@ -32,14 +30,17 @@ script:
3230
- docker build . -t $TRAVIS_COMMIT
3331
# Docker Tag
3432
- if [ ! -z "$TRAVIS_TAG" ]; then
33+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
3534
docker tag $TRAVIS_COMMIT tchiotludo/kafkahq:$TRAVIS_TAG;
3635
docker push tchiotludo/kafkahq:$TRAVIS_TAG;
3736
fi
3837
# Docker Branch
3938
- if [ "$TRAVIS_BRANCH" == "master" ]; then
39+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
4040
docker tag $TRAVIS_COMMIT tchiotludo/kafkahq:latest;
4141
docker push tchiotludo/kafkahq:latest;
4242
elif [ "$TRAVIS_BRANCH" == "dev" ]; then
43+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
4344
docker tag $TRAVIS_COMMIT tchiotludo/kafkahq:$TRAVIS_BRANCH;
4445
docker push tchiotludo/kafkahq:$TRAVIS_BRANCH;
4546
fi

src/main/java/org/kafkahq/App.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@
33
import io.micronaut.runtime.Micronaut;
44

55
public class App {
6-
// route
7-
{
8-
/*
9-
use(new Whoops());
10-
11-
use("*", new RequestLogger()
12-
.latency()
13-
.extended()
14-
);
15-
16-
assets("/favicon.ico");
17-
});
18-
*/
19-
}
20-
216
public static void main(String[] args) {
227
Micronaut.run(App.class);
238
}

src/main/java/org/kafkahq/controllers/SchemaController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ public HttpResponse createSubmit(String cluster,
7979
URI redirect;
8080

8181
if (toast.getType() != Toast.Type.error) {
82-
redirect = new URI("/" + cluster + "/schema/" + subject);
82+
redirect = this.uri("/" + cluster + "/schema/" + subject);
8383
} else {
84-
redirect = new URI("/" + cluster + "/schema/create");
84+
redirect = this.uri("/" + cluster + "/schema/create");
8585
}
8686

8787
return response.status(HttpStatus.MOVED_PERMANENTLY)

src/main/resources/views/errors/notFound.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</p>
2121

2222
<div class="text-right mt-5">
23-
<a href="/" class="btn btn-primary btn-lg">Back to home</a>
23+
<a href="${basePath}" class="btn btn-primary btn-lg">Back to home</a>
2424
</div>
2525
</div>
2626

src/main/resources/views/includes/template.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
${username} (Logout)
8989
</a>
9090
<#else>
91-
<a href="${basePath}/login">
91+
<a href="${basePath}/login" data-turbolinks="false">
9292
<i class="fa fa-fw fa-sign-in" aria-hidden="true"></i>
9393
Login
9494
</a>

0 commit comments

Comments
 (0)