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

questions about production server #13

Open
efirvida opened this issue Aug 30, 2017 · 3 comments
Open

questions about production server #13

efirvida opened this issue Aug 30, 2017 · 3 comments

Comments

@efirvida
Copy link

efirvida commented Aug 30, 2017

Hi i´m using uniserver as the web server so I create a vhos named linda2.com

so my environment.prod.ts is:

export const environment = {
  production: true,
  wpBase: '//linda2.com/wp-json/wp/v2/'
}; 

and run the build command as
ng build --prod --base-href /wp-content/themes/wpng2/dist/

and everything works fine, but my home url on the browser change to http://linda2.com/wp-content/themes/wpng2/dist/ and I and want to ask, if its possible to make it work having the home url as: http://linda2.com

@stuartwk
Copy link
Owner

yup, absolutely. Try running ng build --prod --deploy-url="/wp-content/themes/{THEME_DIRECTORY_NAME}/dist/"

@efirvida
Copy link
Author

thanks :)

@akhilmekkatt
Copy link

How to set en variables local codebase
wpBase: '//localhost/wp-json/wp/v2/'

is not giving result

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