Deploying an application on a live Web server

Once you've developed your application and you've tested and debugged it on your development machine, the next step is to take that application online.

Summary:

Copying files to the server

This process involves moving the application and HTML files to the Web server. This is a manual process that you need to perform on your own and will vary depending on your application.

This can involve installing from an installer, simply copying files to a server or FTP'ing files to a server.

Note that a first time installation requires someone at the server to run the installation.

The following need to be moved to the server:

Project Creation considerations

When you create a new project, especially using the New Project Wizard, the Wizard creates both the project file in the application directory and some startup HTML files in a Web directory. It's generally a good idea to let the Wizard create a copy of wc.dll into your project's BIN directory. This will allow you to use the DLL independently of an existing Web Connection installation which requires wc.dll in the /wconnect virtual directory.

Use the script maps
The New Project Wizard also creates a scriptmap for your application automatically - it's highly recommended that you use that scriptmap extension instead of referencing the DLL directly so that the application is more portable.

Tip!
Whenever possible try to set up your project in such a way that it mimicks the final setup on the server. Use the same directory structures and data paths for example. Although this is not required this setup can make it much easier to fix problems and synchronize a development and live installation. Always make sure that all paths (both application and Web paths) are relative to some base path or the current path. This will ensure your application is portable when moved to different directory.

Take note early on on how the application will be run on the server. For example, your app may be designed in a

The Project Wizard tends to set up applications in a virtual directory, but you can easily move the application to the root if you choose. You can run applications either out of the virtual or the root if you keep to strict relative pathing for images and other related file! Don't hardcode paths or your app will not be portable!

Copying files

Ok, once the app is running on a development box it's time to move it to the server. This involves copying the application and HTML files. For Web files you have to copy all of your HTML files and images and other files that are located in the Web paths.

For application files again copy all files that are related to your project including the executable and data files. In addition copy the following:

Create a Temp directory

You also need to create a temporary directory where Web Connection looks for message files in file based message mode and writes error log entries for any operational mode.

This directory needs to be accessible to the SYSTEM account (or whatever account your Web Server is running under) with full access.

Run the Server Configuration Wizard

Run the Server Configuration Wizard on the server and set up any virtual directories, script maps to your web connection DLL and register your server as a COM object on the remote machine. Please see, Server Configuration Wizard for more info.

COM Server Configuration

The easiest way to configure your COM server is to run the Management Console and use the Configure COM settings step to automatically configure your server for DCOM configuration. You can also perform these steps manually, but I'd highly recommend you use the Wizard since it does the job quicker and more reliably.



See also

Server Configuration Wizard | Manual COM Server Configuration


  Last Updated: 7/30/2008 | © West Wind Technologies, 2008