当前位置: 首页 > news >正文

做网站都需要买什么软件卫生监督 网站建设方案

做网站都需要买什么软件,卫生监督 网站建设方案,国家企业信用信息查询系统,个人备案的网站可以做宣传在现代的Web开发中#xff0c;Vue.js已经成为一种非常流行的JavaScript框架。为了更高效地管理和部署Vue.js项目#xff0c;使用自动化构建工具是至关重要的。Jenkins作为一款强大的持续集成和持续部署#xff08;CI/CD#xff09;工具#xff0c;为我们提供了一种便捷的方…在现代的Web开发中Vue.js已经成为一种非常流行的JavaScript框架。为了更高效地管理和部署Vue.js项目使用自动化构建工具是至关重要的。Jenkins作为一款强大的持续集成和持续部署CI/CD工具为我们提供了一种便捷的方式来自动化构建Vue.js项目。本文将介绍如何在Jenkins中配置和使用自动化构建Vue.js项目的步骤。 1、安装Jenkins  前面已经讲过使用docker安装Jenkins 可以参考前面的文章 Vagrant docker搭建Jenkins 部署环境-CSDN博客 2、安装nodejs 在容器里面安装nodejs,根据项目来下载所需要的版本我这里下载的是node-v10.24.1-linux-x64.tar.xz 解压后设置环境变量vim /etc/profile 保存后让文件生效 source /etc/profile 查看环境变量 看到node环境已经安装完成这里要说一下node编译需要python环境所以我们也要提前安装好python环境这里不做介绍了。 另外Jenkens 需要安装插件Publish Over SSH ,  NodeJS Plugin 3、安装nginx 这是是需要在宿主机上面安装因为我的jenkins和服务器不在一台机器上。 接着我们看看是否安装成功 接下来我们先把nginx配置好代码目录在 /htdocs/workspace下面 nginx配置的文件内容如下 server {listen 80;server_name hg.vue.com;gzip on;gzip_buffers 32 4K;gzip_comp_level 6;gzip_min_length 100;gzip_types application/javascript text/css text/xml text/plain application/x-javascript image/jpeg image/gif image/png;gzip_disable MSIE [1-6]\.; gzip_vary on;#charset koi8-r;#access_log /var/log/nginx/portal.access.log main;access_log /var/log/nginx/portal.access.log;location / {root /htdocs/workspace/dist;try_files $uri $uri/ /index.html;index index.html index.htm;}location /api/ {proxy_set_header Host $http_host; proxy_set_header X-Real-Ip $remote_addr;proxy_set_header REMOTE-HOST $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://127.0.0.1:8080/;} } 4.配置vue项目的打包编译的自动化配置。 我这里有一个大数据项目 5 。接着来配置jenkins自动化构建设置。 在全局设置里面找到 Publish over SSH填写下面的配置 Path to key 就是容器的秘钥 这里我们测试一下连接宿主机可以看到连接成功 创建一个自由分格的前端项目点击保存 配置git访问的仓库路径和秘钥前面那篇文章已经讲过怎么配置凭证这里就不细说了。 配置代码推送时候触发自动构建。 生成gitlab访问的api token 配置node js版本这里也可以通过界面自动安装所需要的版本。 在项目里面设置第三方访问的webhook ,把前面jenkins生成的api token和地址填入下面的位置后保存。 接下来测试一下能否正常访问 设置构建shell 脚本 脚本如下 #加载依赖 node -v cd /var/jenkins_home/workspace/element npm install node-sass --unsafe-permtrue #构建程序 npm run build:prod #移除之前的压缩包 rm -rf dist.tar.gz #把当前目录的所有文件打包成dist.tar.gz tar zcvf dist.tar.gz dist exit 0 配置完成后提交代码 可以看到已经开始自动化构建了 在容器里面看到已经打包成功 可以看到宿主机的代码已经上传过来了。 13:51:13 Started by GitLab push by Administrator 13:51:13 Running as SYSTEM 13:51:13 Building in workspace /var/jenkins_home/workspace/element 13:51:13 The recommended git tool is: NONE 13:51:13 using credential gitlab_api_acess 13:51:13 /usr/bin/git rev-parse --resolve-git-dir /var/jenkins_home/workspace/element/.git # timeout10 13:51:13 Fetching changes from the remote Git repository 13:51:13 /usr/bin/git config remote.origin.url http://192.168.33.10:9980/devop/eelement.git # timeout10 13:51:13 Fetching upstream changes from http://192.168.33.10:9980/devop/eelement.git 13:51:13 /usr/bin/git --version # timeout10 13:51:13 git --version # git version 2.30.2 13:51:13 using GIT_ASKPASS to set credentials 13:51:13 /usr/bin/git fetch --tags --force --progress -- http://192.168.33.10:9980/devop/eelement.git refs/heads/*:refs/remotes/origin/* # timeout10 13:51:13 skipping resolution of commit remotes/origin/main, since it originates from another repository 13:51:13 /usr/bin/git rev-parse refs/remotes/origin/main^{commit} # timeout10 13:51:13 Checking out Revision 28b6ef5427d0af9b94d53b4cd250547507d84b81 (refs/remotes/origin/main) 13:51:13 /usr/bin/git config core.sparsecheckout # timeout10 13:51:13 /usr/bin/git checkout -f 28b6ef5427d0af9b94d53b4cd250547507d84b81 # timeout10 13:51:13 Commit message: 列表更新 13:51:13 /usr/bin/git rev-list --no-walk 28b6ef5427d0af9b94d53b4cd250547507d84b81 # timeout10 13:51:13 [element] $ /bin/sh -xe /tmp/jenkins15749145108840772401.sh 13:51:13 node -v 13:51:13 v10.24.1 13:51:13 cd /var/jenkins_home/workspace/element 13:51:13 npm install node-sass --unsafe-permtrue 13:51:19 npm WARN deprecated npmlog4.1.2: This package is no longer supported. 13:51:21 npm WARN deprecated tar2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. 13:51:21 npm WARN deprecated fstream1.0.12: This package is no longer supported. 13:51:21 npm WARN deprecated gauge2.7.4: This package is no longer supported. 13:51:21 npm WARN deprecated are-we-there-yet1.1.7: This package is no longer supported. 13:51:28 13:51:28 node-sass4.14.1 install /var/jenkins_home/workspace/element/node_modules/node-sass 13:51:28 node scripts/install.js 13:51:28 13:51:29 Cached binary found at /root/.npm/node-sass/4.14.1/linux-x64-64_binding.node 13:51:29 13:51:29 node-sass4.14.1 postinstall /var/jenkins_home/workspace/element/node_modules/node-sass 13:51:29 node scripts/build.js 13:51:29 13:51:29 Binary found at /var/jenkins_home/workspace/element/node_modules/node-sass/vendor/linux-x64-64/binding.node 13:51:29 Testing binary 13:51:29 Binary is fine 13:51:30 npm WARN data_view4.1.0 No repository field. 13:51:30 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents1.2.8 (node_modules/fsevents): 13:51:30 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents1.2.8: wanted {os:darwin,arch:any} (current: {os:linux,arch:x64}) 13:51:30 13:51:30 node-sass4.14.1 13:51:30 updated 1 package in 16.608s 13:51:31 npm run build:prod 13:51:32 13:51:32 data_view4.1.0 build:prod /var/jenkins_home/workspace/element 13:51:32 vue-cli-service build 13:51:32 13:51:32 13:51:32 - Building for production... 13:51:35 Browserslist: caniuse-lite is outdated. Please run next command npm update 13:51:44 WARNING Compiled with 2 warnings5:51:44 AM 13:51:44 13:51:44 warning 13:51:44 13:51:44 asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). 13:51:44 This can impact web performance. 13:51:44 Assets: 13:51:44 static/js/app.0d11b623.js (1.63 MiB) 13:51:44 static/js/chunk-33cd1053.03e8db09.js (361 KiB) 13:51:44 static/js/chunk-569b8c0b.6a84c4a9.js (626 KiB) 13:51:44 static/js/chunk-5f256084.8566a3a0.js (316 KiB) 13:51:44 static/js/chunk-elementUI.2f0523ed.js (551 KiB) 13:51:44 static/js/chunk-libs.ba859aaf.js (494 KiB) 13:51:44 static/html2canvas/html2canvas.js (320 KiB) 13:51:44 13:51:44 warning 13:51:44 13:51:44 entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. 13:51:44 Entrypoints: 13:51:44 app (2.87 MiB) 13:51:44 static/js/runtime.170a745b.js 13:51:44 static/css/chunk-elementUI.18b11d0e.css 13:51:44 static/js/chunk-elementUI.2f0523ed.js 13:51:44 static/css/chunk-libs.56265064.css 13:51:44 static/js/chunk-libs.ba859aaf.js 13:51:44 static/css/app.57e7a0ec.css 13:51:44 static/js/app.0d11b623.js 13:51:44 13:51:44 13:51:44 File Size Gzipped 13:51:44 13:51:44 dist/static/html2canvas/html2canvas.mi 145.34 KiB 35.11 KiB 13:51:44 n.js 13:51:44 dist/static/js/app.0d11b623.js 1666.84 KiB 935.35 KiB 13:51:44 dist/static/js/chunk-569b8c0b.6a84c4a9 625.98 KiB 212.62 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-elementUI.2f0523e 551.28 KiB 133.62 KiB 13:51:44 d.js 13:51:44 dist/static/js/chunk-libs.ba859aaf.js 494.42 KiB 174.20 KiB 13:51:44 dist/static/js/chunk-33cd1053.03e8db09 361.08 KiB 113.03 KiB 13:51:44 .js 13:51:44 dist/static/html2canvas/html2canvas.js 320.41 KiB 61.16 KiB 13:51:44 dist/static/js/chunk-5f256084.8566a3a0 316.15 KiB 20.28 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-6c9e1646.24c3229b 113.30 KiB 16.36 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-0a3d6705.dc2fcec0 12.64 KiB 4.60 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-5c2e346f.12ece7c4 8.65 KiB 2.63 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-44e49eed.110ed8c1 7.60 KiB 2.80 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-0d0b706b.1e273c29 6.94 KiB 2.35 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-9ac620d8.7bcf244a 4.87 KiB 1.85 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-5ef14812.0e35c75c 4.28 KiB 1.68 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-e4e00214.bd8aea91 1.46 KiB 0.74 KiB 13:51:44 .js 13:51:44 dist/static/js/chunk-23fc377d.f78254fe 0.44 KiB 0.31 KiB 13:51:44 .js 13:51:44 dist/static/css/chunk-elementUI.18b11d 197.98 KiB 30.00 KiB 13:51:44 0e.css 13:51:44 dist/static/css/app.57e7a0ec.css 19.95 KiB 4.75 KiB 13:51:44 dist/static/css/chunk-33cd1053.efcf8e1 5.55 KiB 1.59 KiB 13:51:44 5.css 13:51:44 dist/static/css/chunk-e4e00214.e0d5ab5 4.64 KiB 0.83 KiB 13:51:44 e.css 13:51:44 dist/static/css/chunk-libs.56265064.cs 3.52 KiB 1.26 KiB 13:51:44 s 13:51:44 dist/static/css/chunk-6c9e1646.e5b0e32 1.15 KiB 0.48 KiB 13:51:44 7.css 13:51:44 dist/static/css/chunk-5f256084.f7f960c 1.07 KiB 0.62 KiB 13:51:44 3.css 13:51:44 dist/static/css/chunk-5ef14812.cde0c5c 0.75 KiB 0.40 KiB 13:51:44 0.css 13:51:44 dist/static/css/chunk-44e49eed.c1ca27f 0.54 KiB 0.39 KiB 13:51:44 d.css 13:51:44 dist/static/css/chunk-23fc377d.49cb717 0.11 KiB 0.10 KiB 13:51:44 a.css 13:51:44 13:51:44 Images and other types of assets omitted. 13:51:44 13:51:44 DONE Build complete. The dist directory is ready to be deployed. 13:51:44 INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html 13:51:44 13:51:45 rm -rf dist.tar.gz 13:51:45 tar zcvf dist.tar.gz dist 13:51:45 dist/ 13:51:45 dist/index.html 13:51:45 dist/static/ 13:51:45 dist/static/js/ 13:51:45 dist/static/js/chunk-23fc377d.f78254fe.js 13:51:45 dist/static/js/chunk-0a3d6705.dc2fcec0.js 13:51:45 dist/static/js/chunk-libs.ba859aaf.js 13:51:45 dist/static/js/chunk-44e49eed.110ed8c1.js 13:51:45 dist/static/js/chunk-6c9e1646.24c3229b.js 13:51:45 dist/static/js/chunk-33cd1053.03e8db09.js 13:51:45 dist/static/js/chunk-e4e00214.bd8aea91.js 13:51:45 dist/static/js/chunk-5f256084.8566a3a0.js 13:51:45 dist/static/js/chunk-elementUI.2f0523ed.js 13:51:45 dist/static/js/chunk-0d0b706b.1e273c29.js 13:51:45 dist/static/js/chunk-9ac620d8.7bcf244a.js 13:51:45 dist/static/js/app.0d11b623.js 13:51:45 dist/static/js/chunk-5ef14812.0e35c75c.js 13:51:45 dist/static/js/chunk-5c2e346f.12ece7c4.js 13:51:45 dist/static/js/chunk-569b8c0b.6a84c4a9.js 13:51:45 dist/static/fonts/ 13:51:45 dist/static/fonts/element-icons.2fad952a.woff 13:51:45 dist/static/fonts/element-icons.6f0a7632.ttf 13:51:45 dist/static/img/ 13:51:45 dist/static/img/404.a57b6f31.png 13:51:45 dist/static/img/404_cloud.0f4bc32b.png 13:51:45 dist/static/css/ 13:51:45 dist/static/css/chunk-5ef14812.cde0c5c0.css 13:51:45 dist/static/css/chunk-33cd1053.efcf8e15.css 13:51:45 dist/static/css/chunk-44e49eed.c1ca27fd.css 13:51:45 dist/static/css/chunk-23fc377d.49cb717a.css 13:51:45 dist/static/css/chunk-libs.56265064.css 13:51:45 dist/static/css/app.57e7a0ec.css 13:51:45 dist/static/css/chunk-e4e00214.e0d5ab5e.css 13:51:45 dist/static/css/chunk-6c9e1646.e5b0e327.css 13:51:45 dist/static/css/chunk-elementUI.18b11d0e.css 13:51:45 dist/static/css/chunk-5f256084.f7f960c3.css 13:51:45 dist/static/.gitkeep 13:51:45 dist/static/html2canvas/ 13:51:45 dist/static/html2canvas/html2canvas.js 13:51:45 dist/static/html2canvas/html2canvas.min.js 13:51:45 dist/favicon.ico 13:51:45 exit 0 13:51:45 Finished: SUCCESS 打开浏览器地址输入http://hg.vue.com/访问 可以看到已经正常访问了。后面讲一下使用docker nginx在宿主机上面自动构建
文章转载自:
http://www.morning.lgtzd.cn.gov.cn.lgtzd.cn
http://www.morning.kjrlp.cn.gov.cn.kjrlp.cn
http://www.morning.xqmd.cn.gov.cn.xqmd.cn
http://www.morning.qtrlh.cn.gov.cn.qtrlh.cn
http://www.morning.kpfds.cn.gov.cn.kpfds.cn
http://www.morning.yjdql.cn.gov.cn.yjdql.cn
http://www.morning.ydxx123.cn.gov.cn.ydxx123.cn
http://www.morning.fhwfk.cn.gov.cn.fhwfk.cn
http://www.morning.hbpjb.cn.gov.cn.hbpjb.cn
http://www.morning.fmqng.cn.gov.cn.fmqng.cn
http://www.morning.yfddl.cn.gov.cn.yfddl.cn
http://www.morning.tpwrm.cn.gov.cn.tpwrm.cn
http://www.morning.smpmn.cn.gov.cn.smpmn.cn
http://www.morning.qgjxy.cn.gov.cn.qgjxy.cn
http://www.morning.nkiqixr.cn.gov.cn.nkiqixr.cn
http://www.morning.pluimers.cn.gov.cn.pluimers.cn
http://www.morning.rzbcz.cn.gov.cn.rzbcz.cn
http://www.morning.hyhqd.cn.gov.cn.hyhqd.cn
http://www.morning.mgmqf.cn.gov.cn.mgmqf.cn
http://www.morning.cbvlus.cn.gov.cn.cbvlus.cn
http://www.morning.ntqqm.cn.gov.cn.ntqqm.cn
http://www.morning.tsdjj.cn.gov.cn.tsdjj.cn
http://www.morning.ymjgx.cn.gov.cn.ymjgx.cn
http://www.morning.lfcnj.cn.gov.cn.lfcnj.cn
http://www.morning.wkgyz.cn.gov.cn.wkgyz.cn
http://www.morning.jwxnr.cn.gov.cn.jwxnr.cn
http://www.morning.qsxxl.cn.gov.cn.qsxxl.cn
http://www.morning.xirfr.cn.gov.cn.xirfr.cn
http://www.morning.xqxrm.cn.gov.cn.xqxrm.cn
http://www.morning.symgk.cn.gov.cn.symgk.cn
http://www.morning.kfcz.cn.gov.cn.kfcz.cn
http://www.morning.jbtlf.cn.gov.cn.jbtlf.cn
http://www.morning.nbhft.cn.gov.cn.nbhft.cn
http://www.morning.wzknt.cn.gov.cn.wzknt.cn
http://www.morning.wyjpt.cn.gov.cn.wyjpt.cn
http://www.morning.wtsr.cn.gov.cn.wtsr.cn
http://www.morning.rqlbp.cn.gov.cn.rqlbp.cn
http://www.morning.tqgx.cn.gov.cn.tqgx.cn
http://www.morning.ptqbt.cn.gov.cn.ptqbt.cn
http://www.morning.gllhx.cn.gov.cn.gllhx.cn
http://www.morning.gcszn.cn.gov.cn.gcszn.cn
http://www.morning.tqrbl.cn.gov.cn.tqrbl.cn
http://www.morning.drcnn.cn.gov.cn.drcnn.cn
http://www.morning.yxnkr.cn.gov.cn.yxnkr.cn
http://www.morning.vehna.com.gov.cn.vehna.com
http://www.morning.fgtls.cn.gov.cn.fgtls.cn
http://www.morning.fhhry.cn.gov.cn.fhhry.cn
http://www.morning.hrzky.cn.gov.cn.hrzky.cn
http://www.morning.xtdtt.cn.gov.cn.xtdtt.cn
http://www.morning.ddtdy.cn.gov.cn.ddtdy.cn
http://www.morning.qfwzm.cn.gov.cn.qfwzm.cn
http://www.morning.djwpd.cn.gov.cn.djwpd.cn
http://www.morning.smsjx.cn.gov.cn.smsjx.cn
http://www.morning.slysg.cn.gov.cn.slysg.cn
http://www.morning.ylrxd.cn.gov.cn.ylrxd.cn
http://www.morning.nnykz.cn.gov.cn.nnykz.cn
http://www.morning.cnvlog.cn.gov.cn.cnvlog.cn
http://www.morning.qgmwt.cn.gov.cn.qgmwt.cn
http://www.morning.stwxr.cn.gov.cn.stwxr.cn
http://www.morning.kzcfr.cn.gov.cn.kzcfr.cn
http://www.morning.kyctc.cn.gov.cn.kyctc.cn
http://www.morning.nclbk.cn.gov.cn.nclbk.cn
http://www.morning.czwed.com.gov.cn.czwed.com
http://www.morning.wfdlz.cn.gov.cn.wfdlz.cn
http://www.morning.dpgdj.cn.gov.cn.dpgdj.cn
http://www.morning.jjxnp.cn.gov.cn.jjxnp.cn
http://www.morning.knnhd.cn.gov.cn.knnhd.cn
http://www.morning.rynrn.cn.gov.cn.rynrn.cn
http://www.morning.dnjwm.cn.gov.cn.dnjwm.cn
http://www.morning.rkdnm.cn.gov.cn.rkdnm.cn
http://www.morning.jkwwm.cn.gov.cn.jkwwm.cn
http://www.morning.xsjfk.cn.gov.cn.xsjfk.cn
http://www.morning.ddxjr.cn.gov.cn.ddxjr.cn
http://www.morning.rkmsm.cn.gov.cn.rkmsm.cn
http://www.morning.qhjkz.cn.gov.cn.qhjkz.cn
http://www.morning.smspc.cn.gov.cn.smspc.cn
http://www.morning.rfldz.cn.gov.cn.rfldz.cn
http://www.morning.lsfbb.cn.gov.cn.lsfbb.cn
http://www.morning.tnhmp.cn.gov.cn.tnhmp.cn
http://www.morning.mftdq.cn.gov.cn.mftdq.cn
http://www.tj-hxxt.cn/news/265345.html

相关文章:

  • 网站开发嫌工时长港港网app下载最新版
  • 网站源码下载后怎么用app开发需要多少费用
  • 页面设计素材网站高端旅游网站制作
  • 什么样的资质做电子商务网站云南住房建设厅网站
  • 网站开发技术概述杭州哪家公司做网站比较好
  • 品牌网站建设岗位职责百度指数代表什么意思
  • 做仿网站的书提供微网站制作电话
  • 公司做网站大概多少钱自适应网站举例
  • 招聘网站哪个好用青岛网站建设开发外包
  • 网站的广度免费代理上网ip地址
  • 伪原创对网站的影响西安网络公司排名前十名
  • 兰州专业网站建设团队杭州开发app
  • 做视频网站要什么软件wordpress 价格表单
  • 网站seo优化徐州百度网络手机如何建立网站平台
  • 沈阳企业网站建设公司wordpress gallery类型
  • 做第三方库个人网站删除wordpress主题字体载入
  • 给别人做网站被诉侵权西安直播网站建设
  • 影院网站模板广州网站公司建设
  • 怎么做电脑端网站设计稿建筑工程公司名字起名大全
  • 外国炫酷网站网址注册一个劳务公司需要多少钱
  • 网站制作怎样容易盐山县做网站价格
  • 幕墙配件在那个网站做推广好做网站为什么可以自学
  • 阿里云网站建设的步骤过程做网站如何更新百度快照
  • 柳州网站虚拟主机销售价格网站开发公司 广告词
  • 哪个网站可以做兼职重庆市工程建设标准化网站
  • 网站建设选择哪种开发语言最好汽车网站建设公司哪家好
  • 学做网站的软件建站平台在线提交表格功能
  • 做旅游的网站在哪里做建站公司做的网站侵权了
  • 呼伦贝尔北京网站建设网站开发中用什么安全性比性比较高
  • 邹城网站建设公司自由型网站