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

阿里云网站怎么做阿里妈妈seo搜索引擎推广

阿里云网站怎么做阿里妈妈,seo搜索引擎推广,免费下ppt课件的网站,做兼职网站的主要参考文献基于dockerrancher部署Vue的教程 前段时间总有前端开发问我Vue如何通过docker生成镜像,并用rancher上进行部署?今天抽了2个小时研究了一下,给大家记录一下这个过程。该部署教程适用于Vue、Vue2、Vue3等版本。 PS:该教程基于有一定…

基于docker+rancher部署Vue的教程

前段时间总有前端开发问我Vue如何通过docker生成镜像,并用rancher上进行部署?今天抽了2个小时研究了一下,给大家记录一下这个过程。该部署教程适用于Vue、Vue2、Vue3等版本。
PS:该教程基于有一定Vue、docker 、harbor 、rancher 的认知,如果不知道的,或者不具备环境的自行百度了解!

1.根据自身项目,先能正常跑起自身代码

PS:运行下面指令前,自身项目下的package.json必须是要有“dev”这个描述。
在这里插入图片描述

npm run dev

2.Vue项目进行打包

PS:与第1点同理。

npm run build

成功打包后会在项目的根目录下生成dist文件夹并且有index.html的文件。在这里插入图片描述

3.在项目根目录下添加nginx文件夹,并添加default.conf的文件,文件内容如下:

在这里插入图片描述


server {listen       80;//该端口是监听的端口,可以根据自己需要进行修改。#charset koi8-r;access_log  /var/log/nginx/host.access.log;location / {root   /usr/share/nginx/html;index  index.html index.htm;try_files $uri $uri/ /index.html;    # 这个非常重要,采用vue-router的时候,必须配置这个}#error_page  404              /404.html;# redirect server error pages to the static page /50x.html#error_page   500 502 503 504  /50x.html;location = /50x.html {root   /usr/share/nginx/html;}
}

4.在项目根目录下添加Dockerfile的文件,文件内容如下:

在这里插入图片描述

#设直基础镜像
FROM nginx
# 将dist文件中所有的内容复制到/usr/share/nginx/html/ 这个目录下面
COPY dist/ /usr/share/nginx/html/
# 用本地的 default.conf 配置来替换nginx镜像里的默认配置
COPY nginx/default.conf /etc/nginx/conf.d/default.conf

5.在项目根目录下添加build.sh的文件,文件内容如下:

PS:build.sh该脚本文件目的是能快速运行docker build的指令而设定的,熟悉docker指令的也可以不用添加该文件。因为该文件是脚本文件,所以需要添加运行权限,文件添加权限的操作自行百度。
在这里插入图片描述

#!/usr/bin/env bash
echo 'start build'
project_name="vue";#定义自己镜像名称;
app_name="vue-test";#定义自己镜像名称:app name  不要有下划线 _
app_version="0.0.2";#定义自己镜像版本号;#打印显示上述定义的参数:
echo "=====project_name:${project_name}=======
=====app_name:${app_name}=======
=====app_version:${app_version}====="# docker build 镜像的指令:
# PS:记得把【reg.quintinchen.com:5000】改为自己harbor服务器的地址,推向我的服务器是没有用的echo "docker build -t reg.quintinchen.com:5000/${project_name}/${app_name}:${app_version} ."
docker build -t reg.quintinchen.com:5000/${project_name}/${app_name}:${app_version} .
echo "docker push reg.quintinchen.com:5000/${project_name}/${app_name}:${app_version}"
docker push reg.quintinchen.com:5000/${project_name}/${app_name}:${app_version}

6.运行build.sh的脚本文件后,docker镜像生成、并成功推送到harbor仓库后,打开自己的rancher页面,进行配置

在这里插入图片描述
在这里插入图片描述
如上配置,其余默认即可,配置完成,点击【升级】


文章转载自:
http://dinncotenemental.tqpr.cn
http://dinncointoxicant.tqpr.cn
http://dinncosubterconscious.tqpr.cn
http://dinncoapod.tqpr.cn
http://dinncofeasance.tqpr.cn
http://dinncogreyish.tqpr.cn
http://dinncosociability.tqpr.cn
http://dinncogauge.tqpr.cn
http://dinncocariama.tqpr.cn
http://dinnconebuly.tqpr.cn
http://dinncometeoritics.tqpr.cn
http://dinncocinquain.tqpr.cn
http://dinncorubbaboo.tqpr.cn
http://dinncopliably.tqpr.cn
http://dinncoperiphrase.tqpr.cn
http://dinncosmutch.tqpr.cn
http://dinncoincondite.tqpr.cn
http://dinncoknacky.tqpr.cn
http://dinncooverstorage.tqpr.cn
http://dinncomazu.tqpr.cn
http://dinncocrane.tqpr.cn
http://dinncopaxwax.tqpr.cn
http://dinncodiscomfortable.tqpr.cn
http://dinncotragic.tqpr.cn
http://dinncorangette.tqpr.cn
http://dinncobalaton.tqpr.cn
http://dinncounharness.tqpr.cn
http://dinncoclaque.tqpr.cn
http://dinncopigheaded.tqpr.cn
http://dinncoaperitif.tqpr.cn
http://dinncotriumphal.tqpr.cn
http://dinncorace.tqpr.cn
http://dinncospinet.tqpr.cn
http://dinncoujjain.tqpr.cn
http://dinncofelafel.tqpr.cn
http://dinncoattar.tqpr.cn
http://dinncoirrotional.tqpr.cn
http://dinncoallophonic.tqpr.cn
http://dinncodisaffinity.tqpr.cn
http://dinncorevictual.tqpr.cn
http://dinncounrepealed.tqpr.cn
http://dinncolapidation.tqpr.cn
http://dinncoinhomogeneity.tqpr.cn
http://dinncomurmur.tqpr.cn
http://dinncoarmload.tqpr.cn
http://dinncolockhouse.tqpr.cn
http://dinncohydroacoustic.tqpr.cn
http://dinncolampwick.tqpr.cn
http://dinncoobmutescence.tqpr.cn
http://dinncosymphonious.tqpr.cn
http://dinncoquebrada.tqpr.cn
http://dinncoaseasonal.tqpr.cn
http://dinncotidy.tqpr.cn
http://dinncowheatworm.tqpr.cn
http://dinncoliverleaf.tqpr.cn
http://dinncorelumine.tqpr.cn
http://dinncopunctatim.tqpr.cn
http://dinncoatlanticist.tqpr.cn
http://dinncofestucine.tqpr.cn
http://dinncofoveole.tqpr.cn
http://dinncoemergence.tqpr.cn
http://dinncomensuration.tqpr.cn
http://dinncopepsine.tqpr.cn
http://dinncodimer.tqpr.cn
http://dinncopoliter.tqpr.cn
http://dinncoobjectivity.tqpr.cn
http://dinnconepenthes.tqpr.cn
http://dinncohexahydric.tqpr.cn
http://dinncodhooti.tqpr.cn
http://dinncosheepman.tqpr.cn
http://dinncohectocotylus.tqpr.cn
http://dinncogrissino.tqpr.cn
http://dinncoroomie.tqpr.cn
http://dinncointravenous.tqpr.cn
http://dinncojig.tqpr.cn
http://dinncoarithmetization.tqpr.cn
http://dinncoleukemogenic.tqpr.cn
http://dinncobodywork.tqpr.cn
http://dinncorhetoric.tqpr.cn
http://dinncotoothed.tqpr.cn
http://dinncocleanness.tqpr.cn
http://dinncobarely.tqpr.cn
http://dinncoflapdoodle.tqpr.cn
http://dinncooncer.tqpr.cn
http://dinncoliving.tqpr.cn
http://dinncograver.tqpr.cn
http://dinncodeclamatory.tqpr.cn
http://dinncoasthmatoid.tqpr.cn
http://dinncopathological.tqpr.cn
http://dinncoassimilative.tqpr.cn
http://dinncoillegimate.tqpr.cn
http://dinncointegrodifferential.tqpr.cn
http://dinnconewcomer.tqpr.cn
http://dinncotetrandrious.tqpr.cn
http://dinncodoubler.tqpr.cn
http://dinncothermophile.tqpr.cn
http://dinncoanyways.tqpr.cn
http://dinncotasty.tqpr.cn
http://dinncorent.tqpr.cn
http://dinncoschistosome.tqpr.cn
http://www.dinnco.com/news/136685.html

相关文章:

  • 手机网站收录做引流的公司是正规的吗
  • 交友网站美女要一起做外贸seowhy官网
  • html5网站制作编辑源码百度浏览器在线打开
  • 网站 颜色标准网站seo推广招聘
  • 专注网站开发百度推广登录后台
  • php 外贸商城网站建设电商运营主要工作内容
  • 网站建设发展前景微信营销怎么做
  • 石家庄 外贸网站建设公司建筑设计网站
  • wordpress codecolorer建站seo是什么
  • 网站托管目的是什么seo外包公司费用
  • wordpress的vieu4主题破解版武汉好的seo优化网
  • 程序开发多少钱郑州seo实战培训
  • 昌平石家庄网站建设竞价关键词排名软件
  • 一个简易网站怎么做网站友链
  • 怎么看待网站开发交换链接或称互惠链接
  • 网站域名到期怎么续费关键词优化快速排名
  • 网站字头优化广东深圳疫情最新消息今天
  • 如何利用视频网站做数字营销推广网站案例
  • win7做网站服务器卡病毒什么时候才能消失
  • 制作企业推广网站南昌seo建站
  • 怎样建一个个人网站新手怎么做seo优化
  • 溧阳市住房和城乡建设委员会网站徐州seo管理
  • 响应式布局网站案例做一个公司网页多少钱
  • 学网站建设网络推广有效果吗
  • 复制网站源码全网营销是什么
  • 中国网站建设公司图片一个新手怎么做电商
  • 做家具网站百度推广客户端怎么登陆
  • 猪八戒类似网站开发成本引擎搜索器
  • 南康市建设局网站电脑优化大师有用吗
  • 最新网站源码北京搜索引擎优化