GIT_COMMIT_ID=$(git rev-parse HEAD)
echo "VUE_APP_VERSION='${GIT_COMMIT_ID}'" >> .env.staging
npm install
npm run build:stage
docker build . --tag iiiorg/devops-ui:version
docker push iiiorg/devops-ui:version
- Edit
k8s-yaml/devopswebui-deployment.yaml
, Replace image version kubectl apply -f k8s-yaml/devopswebui-deployment.yaml --kubeconfig ~/.kube/stage_config
GIT_COMMIT_ID=$(git rev-parse HEAD)
echo "VUE_APP_VERSION='${GIT_COMMIT_ID}'" >> .env.production
npm install
npm run build:prod
docker build . --tag iiiorg/devops-ui:prod-${GIT_COMMIT_ID}
docker push iiiorg/devops-ui:prod-${GIT_COMMIT_ID}
- Switch to deploy-devops projeact
- Edit
deploy-devops/devops-ui/k8s-yaml/devopsui-deployment.yaml
, Replace image version kubectl apply -f k8s-yaml/devopsui-deployment.yaml --kubeconfig ~/.kube/prod_config
English | 简体中文
A minimal vue admin template with Element UI & axios & iconfont & permission control & lint
Live demo: http://panjiachen.github.io/vue-admin-template
The current version is v4.0+
build on vue-cli
. If you want to use the old version , you can switch branch to tag/3.11.0, it does not rely on vue-cli
# clone the project
git clone https://github.com/PanJiaChen/vue-admin-template.git
# enter the project directory
cd vue-admin-template
# install dependency
npm install
Before running project in development mode, please setup your environment variable VUE_APP_DEV_PROXY_URL
for API request in the .env.development
file.
npm run dev
This will automatically open http://localhost:9528
# build for test environment
npm run build:stage
# build for production environment
npm run build:prod
# preview the release environment effect
npm run preview
# preview the release environment effect + static resource analysis
npm run preview -- --report
# code format check
npm run lint
# code format check and auto fix
npm run lint -- --fix
Refer to Documentation for more information
If you want router permission && generate menu by user roles , you can use this branch permission-control
For typescript
version, you can use vue-typescript-admin-template (Credits: @Armour)
Modern browsers and Internet Explorer 10+.
IE / Edge |
Firefox |
Chrome |
Safari |
---|---|---|---|
IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions |