Section 20.2. Publishing Your Site


20.2. Publishing Your Site

Now that you've sorted out what's going and what isn't, you can publish your site. This is a two-part process. First, you connect to your web host from Dreamweaver. Next, you put, or upload, the files of your site from your computer to the host's computer. Two clicks of the mouse will do it, as this section shows.

20.2.1. Connecting to the Host

Now that you've sorted out what's going and what isn't, you can connect to your web host. You supplied and tested your connection information when you defined your site in Chapter 7, so you know that everything is working fine.

TIP

Dreamweaver won't know where to publish your site if you omit the information about your hosting service, so if you skipped this part of your site definition for whatever reason, go back and do it now! Choose Site Manage Sites, select your site in the Manage Sites dialog box, and click the Edit button.


To connect to your web host, click the Connect button in the Files panel, as Figure 20-2 shows). The Background File Activity dialog box in Figure 20-3 appears and shows you what's happening behind the scenes as Dreamweaver negotiates the connection with your web host. This might take a couple seconds, so be patient.

Figure 20-2. The Connect button in the Files panel


Figure 20-3. The Background File Activity dialog box


If you're working behind Windows Firewall, you may receive the dialog box in Figure 20-4 when you use Dreamweaver's connectivity features for the first time. Make sure you click the Unblock button, or Dreamweaver won't be able to publish your site to the Web.

Figure 20-4. Unblocking Dreamweaver in the Windows Firewall


If you're working behind the firewall built into Mac OS X, you may also have trouble connecting to your Web host through Dreamweaver, but for better or worse, you won't get a dialog box warning you about it. Some Mac users solve the connectivity problem by setting Dreamweaver for Passive FTP mode. To do this, choose Site Manage Sites from the main menu. The Manage Sites dialog box opens. Click Edit for the Site Definition dialog box. Switch to Advanced view, choose the Remote Info category, and check the Use Passive FTP option. If you manage more than one site, and if this fix works for you, make sure you go through and edit the definitions of all your sites for Passive FTP.

Other Mac users get good results by tweaking the settings of the firewall itself. From Sharing in System Preferences, click the Services button, and check the FTP Access option, as Figure 20-5 shows. Then click the Firewall button, and enable FTP access to and from your ISP's server, as in Figure 20-6.

Figure 20-5. First enable FTP Access under Mac OS X Services


Figure 20-6. Then check FTP Access under Firewall


When Dreamweaver makes the connection with your host, the Background File Activity dialog box closes, and the Connect button in the Files panel lights up, as Figure 20-7 shows. Congratulations! You're online.

Figure 20-7. The Connect button lights up to show you're connected


TIP

If all else fails, you can turn off the Mac OS X firewall entirely, and you'll probablyprobablybe all right. Security is a lucrative business, and horror stories are classic sales motivators. With all the sensationalized tales of cyberwoe and identity theft on the nightly infomercials that pass as news, it's easy for consumers to get overprotective about their computer security. But unless you're Bill Gates, the IRS, a bank, or a credit card company, the hackers aren't out to get you. (And if they are, a firewall isn't going to stop them for long.) That said, if you don't have to turn off your personal firewall, don't, just to be on the safe side. The author of this humble tome has been known to keep his firewall on.


20.2.2. Putting Your Files

The time has come to publish your site's files, or to put them, to use the technical jargon. Select the local root folder in the Files panel, as Figure 20-8 shows, and then click the Put button shown in Figure 20-9. Dreamweaver asks if you're sure about putting the entire site. Of course you are. Click OK.

Figure 20-8. Selecting the local root folder in the Files panel


Figure 20-9. The Put button on the Files panel


The Background File Activity dialog box returns as Dreamweaver sends your pages to the web host. Click the arrow button next to Details to see exactly what's happening, as Figure 20-10 shows.

Figure 20-10. Expanding the Details frame to see what's happening


When Dreamweaver finishes, the Background File Activity dialog box closes. Your site is now live! To prove it, switch to Remote view on the Files panel, as in Figure 20-11. You're looking now at your web host's computer, and your folders and files are exactly where you want them.

Figure 20-11. Switching to Remote view to see your published site


TIP

To see your remote files and local files side by side, click the Expand button in the Files panel. Click this button again to return to normal view.


You know what this means: fire up your favorite web browser and point it toward your domain. You are now officially the first visitor to your first published web site. Once again, congratulations! That satisfying taste on your tongue is victory, pure and sweet. Enjoy it. The author of this humble tome wishes you a superabundance of success.



Dreamweaver 8 Design and Construction
Dreamweaver 8 Design and Construction (OReilly Digital Studio)
ISBN: 0596101635
EAN: 2147483647
Year: N/A
Pages: 154
Authors: Marc Campbell

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net