|
|
il y a 2 mois | |
|---|---|---|
| img | il y a 2 ans | |
| public | il y a 3 mois | |
| src | il y a 2 mois | |
| .browserslistrc | il y a 2 ans | |
| .editorconfig | il y a 2 ans | |
| .env.development | il y a 3 mois | |
| .env.production | il y a 3 mois | |
| .eslintrc.js | il y a 2 ans | |
| .gitignore | il y a 2 ans | |
| Dockerfile | il y a 3 mois | |
| LICENSE | il y a 2 ans | |
| README.md | il y a 2 mois | |
| babel.config.js | il y a 4 ans | |
| build.sh | il y a 3 mois | |
| build_devopsapp.sh | il y a 3 mois | |
| package.json | il y a 2 mois | |
| vue.config.js | il y a 2 ans |
ElementUI 的模板框架来自这个项目 master 分支的 c93506a7 版本
.env.development 和 .env.production 环境文件中分别配置开发环境和生产环境的后端接口
npm --registry http://registry.npm.taobao.org i
npm run serve
启动服务后打开浏览器,访问 http://localhost:8000
npm run build
使用 .env.production 文件中的配置
构建后生成的结果在 dist 目录中
server {
listen 8080;
access_log off;
root /opt/webroot;
location / {
try_files $uri $uri/ /index.html;
}
}
root 指令的路径指向 dist 目录的绝对路径