*我们在Dropbox上部署了SVN服务器(!)一切都很好,但我正在寻找一个简单的教程
问题#1:如何控制WordPress数据库的版本用于主题开发 与几个开发人员
主要任务:- 易于更新
- 分支、合并、冲突
我已经搜索了很多类似的主题,
- 但是他们中的许多人只是给出一个概述,而不是傻瓜教程
- 很少有人展示如何准确地编写这些脚本。
所以这是三天的研究结果-几乎20个小时(!)
问题#2:对于给定的任务(上面),脚本(下面)是否足够?
- 我需要检查触发器,视图和剥离它们(如何?) 这个代码提供DDL分离(模式和数据包括)?
- 长期稳定吗?
update.bat
if exist TortoiseProc.exe goto work1
exit
:work1
rem call D:xampp-themesmysql_stop.bat
rem ping 192.0.2.2 -n 1 -w 3000 > nul
START TortoiseProc.exe /command:update /path:"D:xampp-themeshtdocsthemeswp-contentthemestheme1"
rem call D:xampp-themesmysql_start.bat
pause
if exist d:xampp-themesmysqlbinmysql.exe goto work2
exit
:work2
d:xampp-themesmysqlbinmysql.exe -u root --default-character-set=utf8 wordpress<"d:xampp-themeshtdocsthemeswp-contentthemestheme1dbcreation.sql"
d:xampp-themesmysqlbinmysql.exe -u root -D --default-character-set=utf8 wordpress<"d:xampp-themeshtdocsthemeswp-contentthemestheme1dbase_data.sql"
rem call D:xampp-themesmysql_stop.bat
rem ping 192.0.2.2 -n 1 -w 3000 > nul
rem exit
pause
commit.bat
if exist d:xampp-themesmysqlbinmysqldump.exe goto work1
exit
:work1
d:xampp-themesmysqlbinmysqldump.exe -u root --default-character-set=utf8 wordpress>"d:xampp-themeshtdocsthemeswp-contentthemestheme1dbase_data.sql"
d:xampp-themesmysqlbinmysqldump.exe -u root -d --default-character-set=utf8 wordpress>"d:xampp-themeshtdocsthemeswp-contentthemestheme1dbase_structure.sql"
call D:xampp-themesmysql_stop.bat
rem ping 192.0.2.2 -n 1 -w 3000 > nul
if exist TortoiseProc.exe goto work2
exit
:work2
START TortoiseProc.exe /command:commit /path:"D:xampp-themesmysqldata"
START TortoiseProc.exe /command:commit /path:"D:xampp-themeshtdocsthemeswp-contentthemestheme1"
pause
call D:xampp-themesmysql_start.bat
rem exit
上面显示的所有内容都很蹩脚,但无论如何:
你能建议一个更好的方法吗?
规格:
- Dropbox作为Windows环境下的服务器(不是bash/linux语法) 香草WordPress 3.5.1
- XAMPP
- SVN或Subversion with TortoiseSVN Windows client
请提供/编辑代码!提前感谢!
主要步骤:
- 简单。不要使用TortoiseProc,使用CLI-client
- 稳定。不要使用Dropbox作为存储库(或WC)介质,根据您的需要选择svn托管
- 可用性。阅读关于Luqibase作为数据库版本控制和重构引擎的文章,并开始使用它,为所需的更改采用工作流