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

publicPath in vue.config.js #80

Closed
jevgeniP opened this issue Dec 4, 2019 · 2 comments
Closed

publicPath in vue.config.js #80

jevgeniP opened this issue Dec 4, 2019 · 2 comments

Comments

@jevgeniP
Copy link

jevgeniP commented Dec 4, 2019

If I need some specific publicPath in vue.config.js, what changes I need to perform in back end path to assume when I run jar file, app accessible on url localhost/my_path?

@iskradelta
Copy link

The spring context-path can be set like so, java -jar yourapp.jar --server.servlet.context-path=/my_path

You can also override the --server-port=8308 for example, and anything else in your application properties.

Where do you set the publicPath though for npm? When I run the app with a diff context-path /my_path, the npm generated bundle still believes its served under / and fails to load app.js

@jonashackt
Copy link
Owner

Closing due to no activity.

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

No branches or pull requests

3 participants