当前位置:网站首页>nuxt ssr打包和部署
nuxt ssr打包和部署
2022-06-21 20:37:00 【samscat】
- 运行yarn build 打包项目文件, 然后把以下红框中的文件打包上传到服务器文件目录,比如在‘www’目录下新建一个‘test123’

- 在test123目录下打开控制台,运行yarn或者npm i 下载依赖包(前提:在服务器安装了node环境下)
- 依赖包下载之后即可运行yarn start, 可以查看运行的页面了
- 开启ngnix 和配置代理(使用域名浏览网站),以phpstudy为例:
新建一个网站,然后开启nginx服务

打开test123网站,此时看到的是默认的www下面的index.html
修改ngnix配置文件,找到server对象,添加端口、域名(或者ip地址)和代理地址


保存修改之后重启ngnix,再打开test123网站,就可以浏览代理的网站了.
重新打开phpstudy,重启服务发现如下报错
nginx: [warn] conflicting server name “test123” on 0.0.0.0:80, ignored
打开配置文件vhost.conf发现test123下面有重复的配置,删除之后重启即可
边栏推荐
- C#的DataGridView中字体大小
- Contact five heart matchmaker to take off the order
- Introduction to class library, framework, module, component and other concepts
- gdb调试技巧(0)gdb入门
- GDB调试实战(7)信号处理
- Instadeep ltd:arthur flajolet | group based rapid reinforcement learning on a single machine
- UEFI 双系统+双硬盘安装
- Zhengweimin, academician of the Chinese Academy of Engineering: I am optimistic that China will have a place in the next it Era
- An Chaoyun was selected as one of the "top ten cloud computing solution providers" in the Asia Pacific region by cioreview in 2022
- GDB debugging practice (7) signal processing
猜你喜欢
![[in depth understanding of tcapulusdb technology] how to realize single machine installation of tmonitor](/img/74/a645742a8e135b32154859be956760.png)
[in depth understanding of tcapulusdb technology] how to realize single machine installation of tmonitor

How C # aboutbox displays its defined interface

迅为iTOP-3568开发板安装 RKNN Toolkit Lite2
![[deeply understand tcapulusdb technology] transaction execution of document acceptance](/img/7c/25a88f46e02cebd2e003b9590b9c13.png)
[deeply understand tcapulusdb technology] transaction execution of document acceptance

刷题笔记(十六)--二叉树:修改与构造

技术分享 | MySQL中一个聚类增量统计 SQL 的需求

关于eureka启动成功但是访问404问题

从-1开始实现一个中间件

Dotter| dot method sequence pairwise comparison software

【LeetCode】8、字符串转换整数(atoi)
随机推荐
Using streamapi assertion combination and local cache for fuzzy query (nearly 1000 times more efficient than MySQL)
RTX3090 与pytorch版本对应关系
Use the do while loop to calculate the odd and even sums in 1-100 [method 2]
Mafft|multi sequence alignment tool
I2C [2] - why does IIC need to use open drain output and pull-up resistor bug
【深入理解TcaplusDB技术】一键安装Tmonitor后台
Pal2Nal|如何在命令行下运行Pal2Nal
Luogu p1535 [usaco08mar]cow traveling s problem solution
Use for, while and do while to find the sum of 1-100 circularly
[deeply understand tcapulusdb technology] tmonitor background one click installation
MitoZ|Multi-Kmer mode
dotter|打点法进行序列两两比较软件
Luogu p5440 [XR-2] miracle solution
I2C【1】-I2C驱动调试读操作异常的bug
GDB debugging practice (10) multi thread debugging
Luogu p1608 path statistics solution
Is it OK for Zhongyan futures to open an account? Is the platform reliable? Is it safe?
浅学Vector---如何使用常见的接口
刷题笔记(十七)--二叉搜索树:关于属性问题
利用for循环,分别计算1-100中奇数的和、偶数的和【方法一】