Creating a Studio Project for Source Control  
 
 

A Studio project is a collection of files that make up a development project. The actual physical location of project files and the types of files included in a project are determined by the needs of the development team. Typically, application code, documentation, media, testing materials, and other supporting files are included.

When you add a Studio project to source control for the first time, you are prompted to choose a source control provider based on the source control applications Studio detects on your system.

See Chapter 20, Using Projects for Site Management for information on building Studio projects.

 
 
  Establishing a Working Directory  
 
 

The working directory is the point of interaction for files in a project. If you create a project from an existing directory, that directory is automatically set as the working directory. You can build a working directory and create a project from it or create a new project first and then build the working directory.

The source control system is the central repository for your files once they are added to it. If you delete files from the working directory, they will not be deleted from source control unless you specifically remove them.

 
 
  Note  
 

Once you set the working directory for a project, you cannot change it. To change the working directory, you have to create a new project and move your files to that project.

Generally, you can create a working directory on your workstation to develop and test your Web applications. The following configuration is required on your system:

  • The working directory should be in the root of your Web server directory.
  • Your workstation must be running the ColdFusion Application Server (single-user or full version) and a Web server. The Application Server should be configured to run the application that you are developing. This may mean connecting to network ODBC data sources.
  • To preview pages in a project, set the Project server mapping so that the working directory is mapped to the URL for your local machine.

When you get or check files out of source control, they go into that project's working directory on your local machine.

 
 
  Adding a Studio project to source control  
 
 

All source control work is done in Studio through the project management tools in the Projects Resource tab. Once you have a source control system installed and a working directory configured for a Studio project, you can add that project to source control.

 
 
  To add a Studio project to source control:  
 
  1. Open the context menu in the Project pane of the Project Resource tab.
  2. Select Add Project to Source Control.
  3. Choose a working directory if the project is not already assigned to a directory. If you build a project from an existing directory, this directory will be the default working directory.
  4. Add a new project or select an existing one.

When you have added a project to source control, you can add the project files to the source control database.

 
 
  To add the files to source control:  
 
  1. Click on a folder in the Project Resource tab directory pane to open it.
  2. Select the project files you want to add, right-click and select Source Control > Add to Source Control.
  3. Add the project.
  4. Associate the project with source control.
  5. Repeat this process as needed for all directories and files.


 
 
BackUp LevelNext
 
 

allaire     AllaireDoc@allaire.com
    Copyright © 1998, Allaire Corporation. All rights reserved.