I have been working on Nop for 3 months through pulling my hair updating and changing various bits and pieces. I deployed the package and launched on my IIS web server.
What I need to know is when I alter the db I know I can do this via Visual Studio and update the entity accordingly, but if I want to directly change the source code in the models and controllers do I have to constantly redeploy and publish the packages to the web server or will it automatically update??
I know I can change the the basic CSHTML CSS etc but what about the controller and models.
The reason I'm asking this is because I want my workstation as a client station and be able to work directly out of Visual Studio..
I have been working on Nop for 3 months through pulling my hair updating and changing various bits and pieces. I deployed the package and launched on my IIS web server.
What I need to know is when I alter the db I know I can do this via Visual Studio and update the entity accordingly, but if I want to directly change the source code in the models and controllers do I have to constantly redeploy and publish the packages to the web server or will it automatically update??
I know I can change the the basic CSHTML CSS etc but what about the controller and models.
The reason I'm asking this is because I want my workstation as a client station and be able to work directly out of Visual Studio..
Whenever I update my code, I run Prepare/Deploy then FTP the admin, bin, plugins, and views folders to my webserver (overwriting all). I don't do Content or App_Data to preserve my images and connection strings. I also don't worry about themes unless I've made CSS changes.
Directly or just make the changes in solution deploy and copy over the dll to the published files..
Once again Novice here.
Thank you
Richard
just build the website in visual studio and then overwrite the dll files available in bin folder under nop presentation, u dun need to deploy or prepare every time, that's just for one time to upload it on the server , then you can build locally and overwrite the dll.
Uploading plugins everytime will take a bit of time, there is no need of uploading plugins or views , its just the bin folders where everything is compiled, and u dun even need to overwrite all the bins just go for the ones where you have changed some code, for instance if you have modified the nop.services , overwrite services dll , vice versa.
A good deployment strategy is one that is consistent so that you don't have to worry about which files need to be uploaded for each change and risk missing some. If FTPing Plugins and Views to the server takes too much time I would argue you are deploying too often.
I have just gone in and rearranged the entity model to create inner join's between certain fields for the purpose of replication, Id have to agree with Prepare and Deploy then copy over the files with exceptions of content and app data. To be 100%
My only query is I clocked the Product_Category_Mapping works on a one to one join using the primary Key (Id)
I need to use this but also add a inner join from a field in the Product_Category_Mapping that i added CCCStokCode to the product table also called CCCStockCode.
Do I need to create a foriegn key to join these and how would go about it. This is the code I wrote but I'm not hundred percent correct if its write
Sql
select ...
from product_category_mapping
join product on product_category_mapping.ProductId = product.ProductId and product_category_mapping.CCCStockcode = product.CCCStockcode