Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

开发环境

wufeifei edited this page Oct 23, 2014 · 9 revisions

本地开发环境


搭建线下开发环境具体步骤:Mac下

* 请确保拉取的是最新代码再进行以下操作
1.将代码拷贝到/Applications/XAMPP/xamppfiles/htdocs/grw
2.修改配置文件/Applications/XAMPP/xamppfiles/etc/httpd.conf将#Include etc/extra/httpd-vhosts.conf前面#号去掉
3.在文件/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf底部加入
<VirtualHost *:80>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/grw"
    ServerName www.grw.name
    ErrorLog "logs/www.grw.name-error_log"
    CustomLog "logs/www.grw.name-access_log" common
</VirtualHost>
2.重启Apache Web Server
3.修改/etc/hosts加入127.0.0.1 www.grw.name
4.打开127.0.0.1/phpmyadmin,导入->选择grw.sql
5.访问www.grw.name/admin.php?c=Grw&a=login

搭建线下开发环境具体步骤:Windows下

* 请确保拉取的是最新代码再进行以下操作
* X为自己WAMP安装盘符
1.将代码整个拷贝到X:\wamp\www目录下
2.修改 x:\wamp\bin\appache\appache*.*.*\conf\httpd.conf
3.搜索 "httpd-vhosts.conf"将那一行前面的#删掉
4.修改 x:\wamp\bin\appache\appache*.*.*\conf\extra\httpd-vhosts
5.加入
<VirtualHost *:80>
    DocumentRoot "x:\wamp\www\grw"
    ServerName www.grw.name
    ErrorLog "logs/www.grw.name-error_log"
    CustomLog "logs/www.grw.name-access_log" common
</VirtualHost>
6.修改C:\Windows\System32\drivers\etc的hosts加入127.0.0.1 www.grw.name
7.重启WAMP
8.打开127.0.0.1/phpmyadmin,导入->选择grw.sql
9.访问www.grw.name/admin.php?c=Grw&a=login

配置IDE

1.下载PhpStorm
2.选择File->New Project From Existing files选择网站目录
Clone this wiki locally