In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this article, the editor introduces in detail "how to deploy the vue project under Linux", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to deploy the vue project under Linux" can help you solve your doubts.
1. To deploy Nginx, please refer to deploying nginx under Linux. It will not be repeated here.
2.Vue project packaging # packaging formal environment npm run build:prod # packaging pre-release environment npm run build:stage3. During deployment, you may find that the resource path is incorrect. Just modify the file resource path under vue.config.js # Please configure and change publicPath:'. /'4. Upload the packaged dist folder to the server. This project path is / usr/local/webapp/.
5. Modify the conf file vim / usr/local/nginx/cong/nginx.conf # of Nginx as follows: server {listen 80; server_name localhost; # Note that the root path is location / {root / usr/local/webapp/dist; index / index.html;} # Cross-domain ip and port replace location / adminApi {proxy_pass http://ip:port;}} 6. Make the configuration effective sbin/nginx-s reload sbin/nginx-s stop sbin/nginx7. Visit the ip address to view the results and read here. The article "how to deploy vue projects under Linux" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it yourself. If you want to know more about related articles, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.