K8s ingress + Laravel Mix BrowserSync

1 개요[ | ]

K8s ingress + Laravel Mix BrowserSync
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: dev
spec:
  rules:
  - host: myapp-dev.example.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: myapp-dev
            port:
              number: 3000
// webpack.mix.js
mix.browserSync({
    proxy: {
        target: 'localhost:80',
    },
    socket: {
        domain: 'myapp-dev.example.com',
        port: 80,
    }
})
npm run watch

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}