Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化打包:独立打包出dist文件用于生产环境 #173

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

goforu
Copy link

@goforu goforu commented Sep 6, 2021

优化打包:独立打包出dist文件用于生产环境

@goforu goforu changed the title Merge branch 'master' of https://github.com/goforu/lifeRestart 优化打包:独立打包出dist文件用于生产环境 Sep 6, 2021
@linjinbao666
Copy link

贴一个可以用的nginx配置,配合该PR打包:

server {
  listen 80;
  server_name life.a.b;
  root /var/www/life;
  location =/ {
    rewrite ^(.*)$  http://life.a.b/view/index.html;
  }
  location / {
     index view/index.html; 
     proxy_http_version 1.1;
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header X-Forwarded-Proto $scheme;   
  }
}

@goforu
Copy link
Author

goforu commented Sep 8, 2021

@VickScarlet For simplifying deploying procedure, can you kindly approve this PR?

@yipid
Copy link

yipid commented Jan 7, 2022

感谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants