ng-wp-theme icon indicating copy to clipboard operation
ng-wp-theme copied to clipboard

questions about production server

Open efirvida opened this issue 7 years ago • 3 comments

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

efirvida avatar Aug 30 '17 19:08 efirvida

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

stuartwk avatar Aug 31 '17 03:08 stuartwk

thanks :)

efirvida avatar Aug 31 '17 12:08 efirvida

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

is not giving result

akhilmekkatt avatar Apr 13 '18 17:04 akhilmekkatt