Dev notes: Difference between revisions

From Prodigix Wiki
Jump to navigation Jump to search
(Created page with "To run multiple stores on nop. - open your hosts file and enter the various stores domains you want to use - ex: 192.168.10.21 noplocal.com 192.168.10.21 www.noplocal.com 192.168.10.21 uk.noplocal.com 192.168.10.21 mx.noplocal.com - I haven't tested using 127.0.0.1 as the Ip. However your local Ip should work. find this by typing ipconfig in a command interface. - open visual studio as an administrator - go to debug -> Now.Web D...")
 
No edit summary
 
Line 23: Line 23:
                 <binding protocol="http" bindingInformation="*:80:mx.noplocal.com" />
                 <binding protocol="http" bindingInformation="*:80:mx.noplocal.com" />
           </bindings>
           </bindings>
- you will always have to launch visual studio as admin.

Latest revision as of 15:17, 6 June 2023

To run multiple stores on nop. - open your hosts file and enter the various stores domains you want to use

   - ex: 192.168.10.21 noplocal.com
         192.168.10.21 www.noplocal.com
         192.168.10.21 uk.noplocal.com
         192.168.10.21 mx.noplocal.com
    - I haven't tested using 127.0.0.1 as the Ip. However your local Ip should work. find this by typing ipconfig in a command interface.

- open visual studio as an administrator

   - go to debug -> Now.Web Debug Properties
   - On the left select IIS Express
   - Scroll Down to "App URL" and enter the default store url from above. In this case "http://noplocal.com/"
   - Scroll Down further and uncheck Use SSL (this is necessary for now but we may be able to address this later).
   - close visual studio.

- open the iis express config file found at "{Source Code Location}/src/.vs/NopCommerce/config/applicationhost.config"

   - search for "bindings"
   - enter a new binding for each stores domain at the bottom of the list. (the default url from above should have already been entered)
   - ex: <bindings>
               <binding protocol="http" bindingInformation="*:65283:localhost" />
               <binding protocol="https" bindingInformation="*:44369:localhost" />
               <binding protocol="http" bindingInformation="*:80:noplocal.com" />
               <binding protocol="http" bindingInformation="*:80:www.noplocal.com" />
               <binding protocol="http" bindingInformation="*:80:uk.noplocal.com" />
               <binding protocol="http" bindingInformation="*:80:mx.noplocal.com" />
          </bindings>

- you will always have to launch visual studio as admin.