如何Kentico实例复制到本地计算机? [英] How to Copy Kentico Instance to a Local Machine?

查看:255
本文介绍了如何Kentico实例复制到本地计算机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始一个新的位置取代谁突然离开上是总部设在Kentico CMS一个项目的开发人员。我与ASP和Kentico完全陌生,所以需要总共初学者量身定做这里的答案。我所熟悉的其他语言(PHP和Ruby,SQL等),但不知道从哪里开始与此有关。

I just started a new position replacing a developer who left abruptly working on a project that is based in the Kentico CMS. I am completely unfamiliar with ASP and Kentico, so the answer here needs to be tailored for a total beginner. I am familiar with other languages (PHP, Ruby, SQL, etc.) but have no idea where to begin with this.

所以,要我想要做的是(DB和全部)复制一切从我们的生产基地,以我的本地机器这样我就可以更容易发展。我已经导出数据库到SQL文件,并在我们的Kentico实例文件夹放到github上复制所有文件,并克隆它在我的本地机器上。我想既然Kentico已经是设置,通过他们的文档中的安装过程中会不会去这的方式。

So, want I am wanting to do is copy everything from our production site (db and all) to my local machine so I can develop on it easier. I have already exported the db into an SQL file, and copied all the files in our Kentico Instance folder into github, and cloned it on my local machine. I assume since Kentico is already "setup," going through the installation process in their documentation is not the way to go about this.

任何帮助将是令人难以置信的AP preciated!

Any help would be incredibly appreciated!

推荐答案

大卫,基本上有几个片来本地运行Kentico。因为,正如你提到的,Kentico已经成立,你应该有它更容易去了。

David, basically there are a few "pieces" to running Kentico locally. Since, as you mentioned, Kentico is already set up, you should have an easier go of it.


  1. 必要Kentico表的数据库(它听起来像你
    已经有此)

  2. 的codeBase的(所有你复制到GitHub上code文件)

  3. 您要运行Kentico任何域中的有效许可证。当时该网站已面向公众?你知道什么是许可,你有
    或者您可以登录到您复制网站上的CMS台
    一切从?

  4. 设置了IIS为您的本地网站。如果你在这一个我可以进一步解释不清楚,但基本上你需要添加一个新的站点,
    它指向根code文件夹为您的网站,并设置域
    是一个域你有一个Kentico许可证密钥。您还需要
    更改应用程序池设置,以一体化模式(最有可能)
    并设置.NET的相应版本(如果它是一个最近的
    Kentico的版本,你会希望.NET 4.0)

  5. 下一步,你需要编辑您的hosts文件,添加域并将其指向本地主机的IP地址。所以加如127.0.0.1一行
    dev.yourdomain.com或同等学历。

  6. 编辑web.config文件,使您的code可以连接到你的数据库。您将需要相应地编辑连接字符串
    点到你的机器上的数据库。

一旦你完成这些步骤,您的网站应该开始运行,就像它之前了。我没有给所有的这些作品很详细,所以让我知道什么问题,你遇到这样我就可以进一步明确。关于当前形势的详细信息也会有所帮助。

Once you have done these steps, your site should start to run just as it had before. I didn't give great detail on all of these pieces so let me know what problems you encounter so I can further clarify. More information about the current situation would also help.

另外一个说明我会做:如果您需要客户端能够查看你的工作,它很可能会更有效,更容易让你离开Web服务器上的原始数据库,(如果可能的话)连接它远离你的本地计算机。既然你做将导致Kentico数据库更改几乎任何改变,我觉得它更容易被工作1数据库分布式codebases发展。否则,你可能需要不断地与您的更改覆盖其他数据库,这可能是恼人。如果离开了服务器上的数据库,只是远程连接,你可以FTP(或使用git),以文件推送到您已经在本地编辑的服务器。

One other note I would make: if you need the client to be able to review your work, it will most likely be more efficient and easier for you to leave the original database on the web server, and (if possible) connect to it remotely from your local machine. Since almost any change you make will result in a database change in Kentico, I find it much easier to be working on 1 database for development with distributed codebases. Otherwise you will probably need to overwrite the other database with your changes constantly and this can be annoying. If you leave the database on the server and just connect remotely, you can just ftp (or use git) to push files to the server that you have edited locally.

这篇关于如何Kentico实例复制到本地计算机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆