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

update the voucher #272

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JasonBourne1998
Copy link

Fix the 404 error (issue #271 ) on the voucher service by adding the cross-site function in the script. However, this is still something to do to get a 200 code:

  1. After deploying the voucher service, use the command "kubectl port-forward --address 0.0.0.0 service/ts-voucher-service 16101:16101" to forward the voucher port.
  2. Edit the corresponding ajax query URL in the ts-ui-dashboard ( url: "/getVoucher",) with the server's IP+16101/getVoucher. i.e: (http://server IP:16101/getVoucher)
  3. After deploying the UI service, use the command "kubectl port-forward --address 0.0.0.0 service/ts-ui-dashboard 31303:8080" to forward the UI port. (I use this to access "train-ticket" from an external server using the IP address. see issue How to access the ui on the externel ip? #265 )
  4. Then you can get a 200 status code when browsing the voucher.
    image

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.

1 participant