问题
How do you go about setting up a new EPiServer website? I can't seem to get from an empty visual studio project to a deployed website without having to fix all kinds of file path and referencing issues.
If you have a smooth process for creating an EPiServer site from scratch and deploying it to a web server... I'd love to hear it!
回答1:
When I started out with EPiServer, I found this blog series to be extremely helpfull!
回答2:
Setup a framework site that you fix, maintain and add general stuff too. Then copy that every time you start a new project. In my experience that's the smoothest way.
回答3:
I generally use the Visual Studio Integration for EPiServer. Create a new EPiServer project and starts coding. When the skeleton is ready to go I move the database to a central server, update the connection strings, move the VPP folder to a shared server and update the paths in web.config to it. Then it's time to put the code in source control and a project is started.
When time comes for initial deployment to test / production I copy the database and VPP to the server and use Visual Studio's deploy mechanism to compile and copy the binaries + other files needed (before this, I naturally install the core episerver installation on the target server). Then it's just a little IIS configuration and things are working.
Future updates after that involves deploying from visual studio and export / import new/change pagetypes, etc.
来源:https://stackoverflow.com/questions/2539172/what-are-the-steps-to-creating-a-new-episerver-project