Home > Tutorials and Resources > Publishing with Dreamweaver Tutorial

Publishing with Dreamweaver

By B Lingafelter          FTP, Dreamweaver

Once your Web site has been tested and validated, it's time to transfer (copy) all the site's files and subfolders to a Web server where it can be viewed by anyone in the world. This process involves three major steps:

  • Select a web host and setup an account. There are many companies that provide good reliable and relatively inexpensive web hosting. However, in this class you will use your free Butlercc Webhosting student account.
  • Define the FTP connection for a remote web server in Dreamweaver. Generally, this just means adding your server and respective FTP details to the Servers category of an existing site definition.
  • Transfer (copy) your Web site files to the remote server using Dreamweaver's built in FTP tools.

This tutorial illustrates how to define the FTP connection for a Butlercc Webhosting account. It uses an existing site with the local root folder pointing to a DW Projects folder. If you haven't defined a site for the Web site you want to publish, please go back and do it before you go on. For more information, refer to pages 693-696 in your text.

Define the FTP Connection for a Remote Web Server

  1. To edit your DW Projects site definition, choose Site > Manage Sites. Select your DW Projects site and click Edit.
    Server setup
  2. Select the Servers category. Unless you have previously setup a server for this site, the dialog box will be empty.
  3. Click Add Server button (the +).
    Basic server setup
  4. Type a name for the connection to the web server in the Server Name box. This can be anything that helps you identify the webhost you are using for this website. Spaces and upper-case are allowed here.
  5. Choose FTP from the Connect using drop-down.
  6. Enter your assigned subdomain in the FTP Address box. (similar to this: jdoe.butlerccwebdev.net) - With other web hosts this may be something like www.mydomain.com or subdomain.mydomain.com but it never includes directories, folders, slashes, ftp://, or http://.
  7. Enter your assigned username and password in the Username and Password fields. (Butlercc Webhosting limits usernames to 8 characters maximum - Refer to the web account information supplied by your instructor)
  8. Type public_html/ In the Root Directory box- This is the path to the root directory of your web hosting account, which is where you will place the contents of your site's root folder. The location and name of your root directory is determined by the Web hosting company. Other common root directory names include www and htdocs. And in some cases, this field may even be left blank.
  9. Verify that the Web URL box accurately reflects the address you will enter in a browser to get to your website. Dreamweaver sometimes gets this wrong so make changes if necessary. (It should look similar to this: http://jdoe.butlerccwebdev.net/)
  10. Click the Test button to see if Dreamweaver can connect to the Web server.
  11. If Dreamweaver can connect successfully, mark the Save checkbox and skip to step 18.
    If Dreamweaver is not able to connect, you will get an FTP error message with some additional information. Generally, the error is with one of the three pieces of information you entered - double check spelling of your subdomain, username, and of course your password.
  12. If all the information you entered is correct (FTP Address, Username and Password) and you are still unable to connect, click More Options.
    Site setup: More Options
  13. Mark the Use Passive FTP checkbox and click Test again. This sometimes helps with connectivity when issues are related to your firewall.
  14. Try clearing the Use FTP performance optimization and click Test again.
  15. Mark the Use Proxy checkbox only if your system administrator confirms you have a firewall, and click Preferences to set the name of the firewall host computer and its port number.
  16. Mark the Use Alternative FTP move method checkbox only if you can connect but get errors when you Put/Get files.
  17. When you are able to connect successfully, mark the Save checkbox so Dreamweaver will remember your password each time you connect to the Web server.
  18. Click Save. Site Setup now displays your remote server connection.
    Server setup complete
  19. Click Save to return to Manage Sites. Now that you've added site details to an existing site definition, you should export the updated site defition file to your flash drive for safe keeping.
  20. Click the Export button.
  21. Navigate to an appropriate location on your flash drive, like a support folder within the site that will be cloaked (not published) and Save the .ste file.
  22. Click Done.

Transfer Web site files

Expanded Files panel

  1. If necessary, select your DW Projects site in the Files panel. Be sure to close any files you want to transfer to the web server.
  2. In the Files panel, click the Expand/Collapse button at the right end of the toolbar.
    Expand Button
    This opens the Expanded Files panel (shown above), which displays your local site on the right, and the remote Web server files on the left.
  3. Click the Connect button to connect to the Remote Web server you setup in your site definition.
  4. Cloak any folders that you do not want to publish. Right-click the folder and choose Cloaking > Cloak.
    To hide individual files from the transfer process based on their extensions, like .psd or .fla files, edit the site definition and select the Cloaking category. Turn on the "Cloak files ending with" box and type in the extensions you wish to hide. Each extension must begin with a period, and be sure to separate extensions with a space.
  5. To put the entire site, click the local root folder at the top of the Local site panel on the right.
  6. Click the Put button (blue up arrow).
  7. When prompted to transfer dependent files, click Yes. Dependent files are images, css files, flash movies and any other files placed onto a page that are required for the page to display properly.
  8. When all files have been transferred, click the Disconnect button.
  9. Click the Collapse button to return to your normal workspace.
  10. In a browser, go to your URL (something like http://jdoe.butlerccwebdev.net/) to view your site.

Now go ahead and broadcast your URL to the world, or at least tell your family and closest friends.