当前位置:网站首页>Nuxt SSR packaging and deployment
Nuxt SSR packaging and deployment
2022-06-21 23:26:00 【samscat】
- function yarn build Package project files , Then package and upload the files in the following red boxes to the server file directory , For example ‘www’ Create a new one in the directory ‘test123’

- stay test123 Open the console in the directory , function yarn perhaps npm i Download dependency package ( Premise : Installed... On the server node In the environment )
- After the dependent package is downloaded, you can run yarn start, You can view the running page
- Turn on ngnix And configuring agents ( Use the domain name to browse the website ), With phpstudy For example :
Create a new website , Then open nginx service

open test123 Website , At this point, you will see the default www Below index.html
modify ngnix The configuration file , find server object , Add port 、 domain name ( perhaps ip Address ) And agency address


Save your changes and restart ngnix, And on again test123 Website , You can browse the agent's website .
Reopen phpstudy, The following errors are reported when the service is restarted
nginx: [warn] conflicting server name “test123” on 0.0.0.0:80, ignored
Open profile vhost.conf Find out test123 There are repeated configurations below , Restart after deletion 
边栏推荐
- Personal stock trading experience
- Notes on the development of raspberry pie (17): QT multi-user connection operation on raspberry pie 4b+ MySQL database synchronization (pessimistic lock of single data)
- Notes on the development of raspberry pie (15): Raspberry pie 4b+ compile and install MySQL database from the source code
- Specific methods of using cloud development to realize wechat payment
- [use four tricky examples to help you understand] how data is stored in memory
- 4. esp8266 displays DHT11 temperature and humidity parameters in real time through OLED
- 378. the k-th smallest element in an ordered matrix - conventional method
- 解决笔记本电脑(i)某个键的字母按不出来
- 软件测试 答疑篇
- How to use metric unit buffer in PostGIS
猜你喜欢

C语言【隐式类型转换】和【显式类型转换】的详解

After a low code manufacturer stopped serving

关于 QtCreator的设计器QtDesigner完全无法正常拽托控件 的解决方法

原生小程序 申请小程序 - 发布流程

Specific methods of using cloud development to realize wechat payment

有一说一,高并发系统设计其实一点都不难!

About the solution to "the application cannot start normally 0xc00000022" after qt5.15.2 is installed and qtcreator is started

How to adjust the resolution of the computer screen? Computer screen modification resolution switchresx

软件测试概念篇

Software testing concepts
随机推荐
软件测试概念篇
Project change management
硬件开发笔记(三):硬件开发基本流程,制作一个USB转RS232的模块(二):设计原理图库
Sigir2022 | modélisation des préférences des utilisateurs dans le système de recommandation dialogique
Software testing Q & A
项目变更管理
C语言【隐式类型转换】和【显式类型转换】的详解
Native applet application applet - publishing process
【电子方案设计】酒精测试仪PCBA解决方案
keep-alive的使用注意点
关于 SecureFx传输远程服务器中文显示乱码 的解决方法
使用云开发实现微信支付的具体方法
Use of three values of pointer events
libra白皮书
深度学习预测酶活性参数提升酶约束模型构建从头环境搭建
Analysis of 43 cases of MATLAB neural network: Chapter 9 associative memory of discrete Hopfield Neural Network -- number recognition
麒麟系统开发笔记(五):制作安装麒麟系统的启动U盘、物理机安装麒麟系统以及搭建Qt开发环境
Jupyter lab cannot be used after installing the extension
【强烈推荐】Markdown 语法大全
【深入理解指针】指针的进阶