Specific steps for uni-app h5 package release to test and production environment

Foreword:

Recently, I need to modify the requirements on the uniapp project. After the completion, the page needs to be packaged to generate h5 static files, and then deployed to the test and production environment. Here is a summary of my specific steps

step:

  1. The test domain name is opened, because the test domain names in my project are all test.at the beginning, so I search globally test., and manually switch the interface domain name before packaging; submit to git after completing the requirements
  2. When sending the test package, test.release the address of all files . Release the production address when sending production
  3. The project needs to be packaged manually. When packaging, use hbuilder, click the menu bar to publish, click to select the website-H5 mobile version, and compile it locally, and it will tell you the compilation path.Insert picture description here
  4. Find the resources in the unpackage/dist/build/h5 directory under the current project, copy a copy of the dist folder to the desktop, delete all the static files except h5, and then compress it into a .zip folder and go to the release tool Release.

note:

The blogger just compressed it into a .zip folder and then went to the publishing tool to publish an error. At first, he uploaded all the things in the dist file to the publishing tool, which caused the page to fail to open. Later, I found out with the help of colleagues. Just compress and upload the static files under h5, which is step 4 above

Guess you like

Origin blog.csdn.net/weixin_45811256/article/details/113124892