Oracle GlassFish Server 3.0.1 Scripting Framework Guide

ProcedureTo Deploy a Django Application From the Command Line

To deploy a Django application from the command line using the asadmin command, do the following:

  1. Make sure JYTHON_HOME and PATH environmental variables are set, as described in Installing Jython and Django.

  2. Change to the directory containing the project. For example:


    cd /tools/jython/projects
    
  3. Use the following command to deploy the application:


    as-install/bin/asadmin deploy myproject/