简体   繁体   English

为 OpenCart 创建开发环境

[英]Create a development environment for OpenCart

I am creating an e-commerce website using OpenCart and hostgator for hosting.我正在创建一个使用 OpenCart 和 hostgator 进行托管的电子商务网站。 I want to create a development environment with OpenCart installed on it so that I can view changes and edits without making them live.我想创建一个安装了 OpenCart 的开发环境,这样我就可以查看更改和编辑,而无需使其生效。 I also want an easy way to be able to save changes and push them to the live website.我还想要一种简单的方法来保存更改并将它们推送到实时网站。

Can anyone point me in the right direction?谁能指出我正确的方向? Thank you.谢谢你。

If you are the only developer and tester of the site, then simply install WAMP (Windows) , MAMP (MacOS) , or XAMPP on your development machine.如果您是该站点的唯一开发人员和测试人员,那么只需在您的开发计算机上安装WAMP (Windows)MAMP (MacOS)XAMPP You will then be able to install OpenCart, edit any files, and perform testing using a browser and going to http://localhost/然后,您将能够安装 OpenCart、编辑任何文件并使用浏览器执行测试并转到http://localhost/

If there are a number of developers, or you need the development environment to be accessible to other people in other locations, simply setup a subdomain under your existing domain (like "dev.server.com" where the production site is "server.com") and install it there.如果有多个开发人员,或者您需要其他位置的其他人可以访问开发环境,只需在现有域下设置一个子域(例如“dev.server.com”,其中生产站点为“server.com” ") 并将其安装在那里。 (If you go this route, I would suggest researching HTACCESS rules to limit access to the development environment to yourself and other authorised people, rather than making it completely public.) (如果您 go 这条路线,我建议研究 HTACCESS 规则以限制您和其他授权人员访问开发环境,而不是完全公开。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM