General advice for my first web App :)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hi all

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 hope this makes sense.

All help highly regarded

Richard
12 years ago
wertyuio1 wrote:
Hi all

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 hope this makes sense.

All help highly regarded

Richard


just update the dll's
12 years ago
Absolute Novice here.

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
12 years ago
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.
12 years ago
wertyuio1 wrote:
Absolute Novice here.

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.
12 years ago
Thanks both for the reply.

I will test both procedures.

Kind regards

Richard
12 years ago
Thank you both,

Both procedures worked a charm.

Kind regards

Richard.
12 years ago
wertyuio1 wrote:
Thank you both,

Both procedures worked a charm.

Kind regards

Richard.


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.
12 years ago
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.
12 years ago
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


In the mapping file I placed this code

//this.HasRequired(pc => pc.Product)
                //.WithMany(p => p.ProductCategories)
                //.HasForeignKey(pc => pc.CCCStockCode);


Is this write the sql code I picked up online a tailored!

Richard
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.