Page 1 of 1

Deploying via file system then FTP

Posted: Wed Jun 24, 2015 5:58 am
by mbartens
Excuse me if any of this sounds naive, I haven't had occasion to deploy an application of this sort.
So I'm using AC Gold WAP and VS 2012. I've always manually moved the files including the .cs files and database. I've been informed that I should not be promoting the .cs files.
I thought that I could just publish this via VS and it would exclude all the unnecessary files but either I'm doing that wrong or it just doesn't do that.

I did a "release build" in VS. Then I did a file system publish. I was expecting only the files needed to run the app to be in the selected deployment folder. Instead there were .cs and designer files. I'm pretty sure I shouldn't be uploading those so I had to manually delete them.
After I deleted those I also deleted :
Web.Debug.config
Web.Release.Config
\bin\AbleCommerce.pdb
\App_Data\AbleCommerce.mdb (I'm using a SQL Server DB)

What other files are unnecessary ? Thank you!

So this is my build configuration:
Property Page 6242015 103918 AM.jpg
The Package configuration:
PropertyPagePanel 6242015 104046 AM.jpg

When I go to the Publish Web dialog I select the File System as the Publish method and define my target destination.
These are the settings for the file publish.
Property Page 6242015 103918 AM.jpg

Re: Deploying via file system then FTP

Posted: Fri Jun 26, 2015 12:23 am
by mazhar
I think mostly that's it but if you are running local copy for development with separate database you may wan to exclude
App_Data/database.config
App_Data/encryption.config
App_Data/CommerceBuilder.lic

to make you don't overwrite database connection, licensing and encryption keys.