Home >Topics >Pagoda Panel >Teach you how to deploy the uniapp h5 project in Pagoda in two minutes

Teach you how to deploy the uniapp h5 project in Pagoda in two minutes

藏色散人
藏色散人forward
2021-11-17 14:59:226976browse

This article is provided by the Pagoda Panel tutorial column to introduce how to use the Pagoda Panel to deploy uniapp's h5 project. I hope it will be helpful to you if you need it!

Pagoda panel deploys uniapp’s h5 project

1. Release h5 in uniapp

The configuration is as follows in the manifest

Teach you how to deploy the uniapp h5 project in Pagoda in two minutes

Get the folder h5:

Teach you how to deploy the uniapp h5 project in Pagoda in two minutes

2. Configure nginx in the pagoda panel

In the nginx file Create a project folder under the folder and upload the h5 project

Teach you how to deploy the uniapp h5 project in Pagoda in two minutes

Modify nginx configuration

Teach you how to deploy the uniapp h5 project in Pagoda in two minutes

Add the content as:

server{
    listen 80;
    server_name www.nyar-alex.cn;
    location / {
      root /www/server/nginx/XMgarbagesorting/h5;
      index index.html;
    }
    
}

Teach you how to deploy the uniapp h5 project in Pagoda in two minutes

3. Access address

such asnyar-alex.cn/#/

The above is the detailed content of Teach you how to deploy the uniapp h5 project in Pagoda in two minutes. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:juejin.im. If there is any infringement, please contact admin@php.cn delete