Skip to content

Commit

Permalink
Merge branch 'master' into branch-0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
urfreespace committed May 10, 2022
2 parents 898ec71 + f5a77e0 commit 8237dc4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ apply plugin: 'application'

mainClassName = 'org.apache.pulsar.manager.PulsarManagerApplication'

startScripts {
classpath = files('$APP_HOME/lib/*')
}

task licenseFormatNode(type: com.hierynomus.gradle.license.tasks.LicenseFormat) {
source = fileTree(dir: "src").include("**/*")
source = fileTree(dir: "front-end/src").include("**/*")
Expand Down
11 changes: 11 additions & 0 deletions front-end/docker/conf.d/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
location / {
index index.html index.htm;
}
location /pulsar-manager/ {
proxy_pass http://host.docker.internal:7750;
}
}
13 changes: 13 additions & 0 deletions front-end/docker/docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /bin/sh

ROOT_DIR=$(git rev-parse --show-toplevel)
CONTAINER_NAME="pulsar-manager-ui"
CONTAINER_ID=$(docker ps | grep $CONTAINER_NAME | awk '{print $1}')

if [ -n "$CONTAINER_ID" ]; then
docker exec -it $CONTAINER_NAME nginx -s reload
else
docker run --name $CONTAINER_NAME -p 80:80 -v $ROOT_DIR/front-end/dist:/usr/share/nginx/html -v $ROOT_DIR/front-end/docker/conf.d:/etc/nginx/conf.d nginx:1.18.0-alpine
fi

echo "Website is running: http://localhost"
2 changes: 1 addition & 1 deletion front-end/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const constantRouterMap = [
]

export default new Router({
mode: 'history', // require service support
// mode: 'history', // require service support
scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap
})
Expand Down

0 comments on commit 8237dc4

Please sign in to comment.