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

怎么创建一个网站卖东西如何对现有的网站改版

怎么创建一个网站卖东西,如何对现有的网站改版,网站源码带后台,电脑网页传奇一、nginx默认路径 1.1、默认配置文件路径#xff1a;/etc/nginx/nginx.conf 1.2、默认资源路径#xff1a;/usr/share/nginx/html/index.html 二、修改nginx.conf配置 #xff08;注意配置中的#xff1a;include /etc/nginx/conf.d/*.conf; 里面包了一个server配置文件…一、nginx默认路径 1.1、默认配置文件路径/etc/nginx/nginx.conf 1.2、默认资源路径/usr/share/nginx/html/index.html 二、修改nginx.conf配置 注意配置中的include /etc/nginx/conf.d/*.conf;  里面包了一个server配置文件  user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events {worker_connections 1024; }http {include /etc/nginx/mime.types;default_type application/octet-stream;log_format main $remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for;access_log /var/log/nginx/access.log main;sendfile on;#tcp_nopush on;keepalive_timeout 65;#gzip on;#include /etc/nginx/conf.d/*.conf;server {listen 80;listen [::]:80;server_name localhost;#access_log /var/log/nginx/host.access.log main;location / {root /usr/share/nginx/html; # vue目录地址distindex index.html index.htm;try_files $uri $uri/ /index.html; # 解决刷新页面变成404问题的代码}#error_page 404 /404.html;error_page 500 502 503 504 /50x.html;location /50x.html {root /usr/share/nginx/html;}} }三、dockerfile COPY ./nginx.conf /etc/nginx/nginx.conf COPY --fromnodeBuild /y-qd/dist /usr/share/nginx/html # 二开推荐阅读[如何提高项目构建效率](https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/scene/build/speed.html) # 选择构建用基础镜像。如需更换请到[dockerhub官方仓库](https://hub.docker.com/_/java?tabtags)自行选择后替换。# 引入Node.js FROM node:12.22.12 AS nodeBuild# npm镜像解决报错而引入 RUN npm config set registry https://registry.npm.taobao.org# install simple http server for serving static content # 全局http-server用于本地运行 #RUN npm install -g http-server# make the app folder the current working directory # 指定构建过程中的工作目录 WORKDIR /y-qd# copy both package.json and package-lock.json (if available) # 将src目录下所有文件拷贝到工作目录中src目录下.gitignore/.dockerignore中文件除外 COPY package*.json ./# install project dependencies RUN npm install# copy project files and folders to the current working directory (i.e. app folder) COPY . .# build app for production with minification # 生产打包对应脚本build: node build/build.js RUN npm run build #本地对应脚本dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js #RUN npm run dev# production stage #代理nginxnginx直接访问 FROM nginx:stable-alpine AS nginxBuild COPY ./nginx.conf /etc/nginx/nginx.conf COPY --fromnodeBuild /y-qd/dist /usr/share/nginx/html EXPOSE 80 CMD [nginx, -g, daemon off;]#本地对应端口 #EXPOSE 8088 #CMD [ http-server, dist ] 四、注意 4.1、 完~
http://www.dnsts.com.cn/news/50607.html

相关文章:

  • 公司免费网站制作怎么申请网站
  • 网上打字兼职正规网站电子商务网站建设工资
  • 科普互联网站建设长沙开发网站的公司
  • 高端网站建设页面小程序开发源码
  • 在哪个网站找学做包子安徽建设官网
  • 安化建设局网站网站建设的作用是什么
  • 官方网站找oem做洗发水厂家如何用ftp做网站
  • 个人网站制作模板图片软件设计师考试大纲
  • 沧州网站建设 熊掌号浙江软装设计公司
  • 温州网站建设服务器现在开什么网站
  • 好看网站手机版深圳做网站乐云seo费用优惠
  • 投资融资理财网站模板网站建设一秒互联
  • 珠海正规网站制作哪家好wordpress语音
  • 网站建设期末题答案濮阳网站优化公司哪家好
  • 企业对做营销型网站有什么优势网站搭建是什么专业学的
  • 郑州快速建站公司js检测网站是否能打开
  • 网站开发定制合同范本wordpress 优化插件
  • .org做商业网站做热处理工艺的网站有哪些
  • 南宁网站建设哪里好企业网站建设与推广
  • 网站制作设计说明杭州优化外包哪里好
  • 网站开发的流程 知乎时代创信网站建设
  • 外贸推广免费网站跨境电商开店平台
  • 手机模板网站生成制作龙岗免费的网站制作
  • 广州五羊建设官方网站信阳优化公司
  • 网站开发技术 难点广州域名企业网站建站哪家好
  • 怎么做好网站方式推广舆情分析师
  • 佛山百度关键词排名西安关键词优化服务
  • 做网站需要什么执照一个企业网站的建设流程
  • 网站里面送礼物要钱怎么做代码dede添加网站背景
  • 滁州市建设局网站全网营销推广系统