Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.


Testing the Custom Installer Builder

This page outlines how to deploy the Custom Installer Builder using Django's built-in test server on a Linux system. For production-level deployment on a real web server, reference these instructions instead.

We'll assume that you have completed the previous steps to install, configure, and customize your local Custom Installer Builder already.

Revisit Django settings

Under the Custom Installer Builder's user account, edit custominstallerbuilder/local/ to match your local configuration. Ensure that the following items are set up correctly:

BASE_URL = 'http://your-actual-custominstallerbuilder-test-url:PORT/'  # Note the trailing slash!

If you are testing locally, you will use for the BASE_URL. You may use your public facing IP if you want it to be accessible via the Internet. PORT must be an open port number greater than 1024. For smaller port numbers, administrative privileges are required.

Start Django test server

Ensure that the environment variable PYTHONPATH includes the Repy runtime directory. Then, from the ~/custominstallerbuilder/ directory, run the Django test server:

$ export PYTHONPATH=$PYTHONPATH:/home/cib/custominstallerbuilder/repy_runtime
$ cd ~/custominstallerbuilder
$ ./ runserver   # This will log some information to the prompt
Validating models...

0 errors found.
Django version 1.3.5, using settings 'local.settings'
Development server is running at
Quit the server with CONTROL-C.

You should now be able to access your Custom Installer Builder test server at the address specified for BASE_URL above. Don't worry if the media files (images, CSS, JavaScript?) are missing for the time being. The production deployment guide will add the missing bits and pieces of configuration to rectify that.