Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current Restore this Version View Page History

Version 1 Next »

Deploying N2 to a Web Server

When you are

Web.config Entries

{content needs to be written}

Publishing from Visual Studio

{content needs to be written}

Keeping Production and Development Data in Sync

Once you deploy in production, you may or may not want to move away from using the default SQLite database engine. Either way, take care not to replace your production database with an older development database! We recommend that you periodically replace the database you use in development with copy of your production database so that you can experiment with your current production data. Your development and production instances of N2 do not necessarily need to be using the same database engine. We recommend that you use the import/export feature in the N2 administration area to first export your site to a file, and then import this file in your production setup.

Why not simple database replication? Because not all data is stored natively in the database, traditional database replication is not guaranteed to provide consistent replication of your N2 site data. The N2 import/export API handles all data, including data not stored in the database.

Note: If the file is very large, you might not be able to upload the file to your development instance unless you change some configuration settings. See the related topic: File upload issues.

Streamlining deployment using ZipFS

The N2 administration area uses a number of small image files that can be burdensome to deploy over FTP. Furthermore, some hosting environment impose limitations on the total number of files hosted. To eliminate these small resource files, you can deploy a N2.ZIP file containing these resource files. The server will transparently extract this N2.ZIP file and serve the extracted files to clients on demand.

{content needs to be written}

Caveat: more memory used by the ZIP DLL.