网站发布的DreamWeaver设置

Previously we have covered general preference settings for DreamWeaver. The instructions that follow are primarily intended for students in my full-time web development program. For those students: keep these instructions with you at all times, add this article to your favourites, or know where to find it. I am not going to indulge endless questions of "How do you set up a connection to the server again?".

以前,我们已经介绍了DreamWeaver的常规首选项设置 。 以下说明主要针对我的全职Web开发计划中的学生。 对于这些学生: 始终随身携带这些说明,将本文添加到收藏夹中,或者知道在哪里可以找到它。 我不会无休止地问“您如何再次建立与服务器的连接?”的问题。

It is very important to note that the settings made in these steps are specific to that machine. If you try to work on your site from another machine, it is likely that you will need to recreate some or all of these settings for that specific installation of DreamWeaver, or import those settings from a .ste file, discussed later.

请务必注意,在这些步骤中进行的设置是特定于该计算机的 。 如果尝试使用另一台计算机在站点上工作,则可能需要为DreamWeaver的特定安装重新创建部分或全部这些设置,或者从.ste文件导入这些设置,稍后再讨论。

Finally, note that the details of some of these steps will change depending on the server and folder you are publishing to. The specific server and folders settings shown here will not work outside the SAIT campus.

最后,请注意,其中某些步骤的详细信息将根据要发布到的服务器和文件夹而变化。 此处显示的特定服务器和文件夹设置在SAIT园区之外无法使用

步骤1:整理您的网站 (Step 1: Organize Your Site)

Put the files that you want to be on your site in a specific folder on your network drive or a USB stick. For school work, do not work from files on the local hard drive: you are sure to lose them when the computer is re-imaged, be unable to reach them when that computer is being used by another student.

将要保存在站点中的文件放在网络驱动器或USB闪存盘上的特定文件夹中。 对于学校作业, 请不要使用本地硬盘驱动器上的文件进行工作:当对计算机重新成像时,您一定会丢失它们;如果另一位学生正在使用该计算机,则无法访问它们。

The folder should contain your HTML and CSS pages, JPEG and GIF images (placed in an images sub-folder) and originals (such as .PSD and .AI files) placed in an originals folder. The folder name that contains all of this can be whatever you wish.

该文件夹应包含HTML和CSS页面,JPEG和GIF图像(放置在图像子文件夹中)以及原始文件(例如.PSD和.AI文件),放置在原始文件文件夹中。 包含所有这些的文件夹名称可以是您想要的任何名称。

步骤2:在DreamWeaver中设置您的网站 (Step 2: Set up your site in DreamWeaver)

DreamWeaver needs to have access to the site content you are working on. It calls this version of the site the "local folder", but it could be a folder stored anywhere: on the computer, on a CD, on a network. To give DreamWeaver access to this content, and to tell it where to publish to, we will set up a site.

DreamWeaver需要有权访问您正在处理的网站内容。 它将该站点的此版本称为“本地文件夹”,但它可能是存储在任何位置的文件夹:计算机,CD,网络上。 为了使DreamWeaver可以访问此内容并告诉其发布位置,我们将建立一个站点。

From the Site menu, choose New Site.

从“ 站点”菜单中,选择“ 新建站点”

Dreamweaver Manage Sites window screenshotWe’ll step through the process to create our first site. First, let’s name our site by clicking on
New….

New…为网站命名。

In the dialog box that appears, name your site. The name of the site can be anything, since it is referenced by DreamWeaver exclusively, but the site name is visible to anyone else using DreamWeaver on that machine, no matter what their login, so calling the site "My Site" could lead to confusion.

在出现的对话框中,命名您的站点。 该站点的名称可以是任何名称,因为它仅由DreamWeaver引用,但是该站点名称对于在该计算机上使用DreamWeaver的其他任何人都是可见的,无论其登录名如何,因此将站点称为“我的站点”可能会导致混乱。

Your Local Site folder is where you keep your local copy of your files. This could be anywhere, but I would strongly recommend that you point it towards a folder on a USB stick, portable hard drive, or a network folder.

您可以在“本地站点”文件夹中保留文件的本地副本。 它可以在任何地方,但是我强烈建议您将其指向USB记忆棒,便携式硬盘驱动器或网络文件夹上的文件夹。

Click on Servers. On this panel, we need to tell DreamWeaver where our website will be published: that is, details about the website server. DreamWeaver actually assumes we have two servers: a private production server for testing files, and a public remote server that hosts our website for the outside world. In our case, the two are one and the same.

单击服务器 。 在此面板上,我们需要告诉DreamWeaver我们的网站将在哪里发布:即有关网站服务器的详细信息。 实际上,DreamWeaver假设我们有两台服务器:用于测试文件的私人生产服务器,以及托管我们的外部网站的公共远程服务器。 在我们的例子中,两者是相同的。

Dreamweaver Server SetupClick on the
+ icon in the lower left-hand corner of the panel. The Server Name can be whatever you wish, but the other details must be exactly as follows:

+图标。 服务器名称可以是您想要的任何名称 ,但其他详细信息必须完全如下:

  • The FTP address of the web server is webapp.ict.sait.ca

    Web服务器的FTP地址是webapp.ict.sait.ca

  • Your FTP username and password are those provided by your instructor. Write these down on something that will not be misplaced and that will always be with you in class.. The password and username will be automatically saved on your machine once you progress past this step, but the information will only be stored on the machine you are using at the moment by default.

    您的FTP用户名和密码是您的讲师提供的。 把这些写下来,放在不会错放的东西上,并且在课堂上永远伴随着你。 。 一旦完成此步骤,密码和用户名将自动保存在您的计算机上,但是默认情况下,信息仅存储在当前使用的计算机上。

  • The root directory (the folder that we are going to upload the site to) is: yourclassname/yourfirstinitalyourlastname

    根目录(我们要将网站上传到的文件夹)是: yourclassname / yourfirstinitalyourlastname

  • The Web URL should be automatically completed for you. It should be of the form http://webapp.ict.sait.ca/users/yourclassname/yourfirstinitalyourlastname

    Web URL应该会为您自动完成。 它的格式应为http://webapp.ict.sait.ca/users/yourclassname/yourfirstinitalyourlastname

Test the connection by clicking the Test button. If you find that the server takes a long time to connect (more than 20 seconds) open the More Options panel and turn on Use Passive FTP.

通过单击“ 测试”按钮来测试连接。 如果发现服务器需要很长时间才能连接(超过20秒),请打开“ 更多选项”面板,然后打开“ 使用被动FTP”

Click on Advanced at the top of the panel and turn on Automatically upload files to server on save. This ensures that any changes you make to files in the local copy of the site will be uploaded to the remote server when you save them. (This would typically not be done in a real world production environment - you would want to thoroughly test any changes to files locally before uploading them to the server - but for the purposes of class turning the option on avoids a great deal of confusion.)

单击面板顶部的“ 高级 ”,然后启用“保存时自动将文件上传到服务器” 。 这样可以确保您在保存站点本地副本中对文件所做的任何更改都将上载到远程服务器。 (在现实世界的生产环境中通常会这样做-您可能需要在本地将文件的所有更改完整地测试,然后再将其上传到服务器上-但出于类的目的,打开该选项可避免造成很多混乱。)

At this point, you could set the Testing Server model to PHP MySQL if you wished to. It is not important that you do so unless you are planning to use a database for the site.

此时,您可以根据需要将“ 测试服务器”模型设置为PHP MySQL 。 除非您打算为该站点使用数据库,否则这样做并不重要。

Finally, click Save.

最后,点击保存

You have returned to the main site setup panel. If you are not running a production server, your remote and testing servers are one and the same: turn on the checkbox beneath Testing. if you need to change anything about the server setup, click the pencil icon.

您已返回到主站点设置面板。 如果您没有运行生产服务器,则远程服务器和测试服务器是一台相同的服务器:启用“ 测试”下面的复选框。 如果您需要更改有关服务器设置的任何内容,请单击铅笔图标。

That’s it: we’re all done setting up DreamWeaver!

就是这样:设置DreamWeaver已全部完成!

步骤3:发布您的网站 (Step 3: Publish Your Site)

Dreamweaver Files TabPress the
F8 key (on the Mac, CMD-SHIFT-F). This brings up your Files tab, which, in its minimized state, shows the local files of your current site. Press the Maximise button on the right side of the tab, which expands the tab to two windows, with your local files on the right side, and your files on the web server on the left. At the moment, your part of the web server is empty. You can prove that by connecting to the server (the small button with three circles on it).

F8键(在Mac上为CMD-SHIFT-F )。 这将打开“ 文件”选项卡,在其最小化状态下,它将显示当前站点的本地文件。 按下选项卡右侧的最大化按钮,该选项卡将选项卡扩展到两个窗口,本地文件位于右侧,而Web服务器上的文件位于左侧。 目前,您的Web服务器部分为空。 您可以通过连接到服务器(带有三个圆圈的小按钮)来证明这一点。

There are several ways to copy your local files to the web server. The easiest is to select them as you would any other files (using the shift or control keys to make multiple selections) and press the green upright arrow, which means "upload files to server".

有几种方法可以将本地文件复制到Web服务器。 最简单的选择方法是选择它们,就像选择其他文件一样(使用Shift或Control键进行多项选择),然后按绿色的向上箭头,这意味着“将文件上传到服务器”。

Once accomplished, you can view any file you wish: select it (in either the local or remote view) and press the F12 key.

完成后,您可以查看所需的任何文件:将其选中(在本地或远程视图中),然后按F12键。

Finally, it is probably a good idea to Export the settings we have just created. Exporting the settings as a .ste file allows us to load the site settings into another installation of DreamWeaver. Returning to the Manage Sites window, click on Export. I would recommend saving the settings file somewhere on your Network drive or a USB key, anywhere but the local folder of your site. Saving the .ste file in your local folder will mean that it is likely to be uploaded to your server… which means that anyone with enough smarts now has the ability to pick up the username and password for your site.

最后,导出刚才创建的设置可能是一个好主意。 将设置导出为.ste文件,使我们可以将站点设置加载到Dreamweaver的另一个安装中。 返回到“ 管理站点”窗口,单击“ 导出” 。 我建议将设置文件保存在网络驱动器或USB闪存盘上的某个位置,而不是站点的本地文件夹中 。 将.ste文件保存在本地文件夹中将意味着该文件很可能会上传到您的服务器中……这意味着,任何具有足够智能的人现在都可以选择您网站的用户名和密码。

翻译自: https://thenewcode.com/388/DreamWeaver-Settings-for-Site-Publishing

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值