公司要求在redmine基础上开发FaceProject
下载bitnami-redmine-1.2.1-1-linux-installer.bin后安装倒不麻烦,
麻烦的是安装成功后如何改成FaceProject,
之前在windows 上修改过,现在又要在linux上修改,额滴神,
为了下次再做类似的事时不再忘记,特意写到博客上做个备忘。
在windows上需要修改的有
/BitNami Redmine Stack/serviceinstall.bat
/BitNami Redmine Stack/servicerun.bat
/BitNami Redmine Stack/apps/FaceProject/scripts/redmineini.bat
/BitNami Redmine Stack/apps/FaceProject/scripts/serviceinstall.bat
/BitNami Redmine Stack/apps/FaceProejct/conf/redmine.conf
/BitNami Redmine Stack/apache2/conf/httpd.conf
而在linux下就不一样了,需要修改的有
/opt/redmine-1.2.1-1/ctlscript.sh
/opt/redmine-1.2.1-1/apps/FaceProject/scripts/ctl.sh
/opt/redmine-1.2.1-1/apps/FaceProject/scripts/redmineini.sh
/opt/redmine-1.2.1-1/apps/FaceProject/conf/redmine.conf
/opt/redmine-1.2.1-1/apps/FaceProject/config/mongrel_cluster.yml
/opt/redmine-1.2.1-1/apache2/conf/httpd.conf
其他的修改还有很多是FaceProject中具体ruby类的修改了,我曾经尝试着将
windows下已经修改后的FaceProject直接upload到linux下,发现主要不同的地方有
FaceProejct/config(windows下没有mongrel_cluster.yml文件)
和FaceProject/tmp/pids(windows下没有该目录,如果linux无该目录,启动mongrel_rails报错)
其他差别暂时未发现。
windows下启动用manager-windows.exe即可管理各个服务的启动与停止
linux下启动关闭用
/opt/redmine-1.2.1-1/ctlscript.sh start|stop|restart
如果成功会显示类似如下信息
111026 16:53:14 mysqld_safe Logging to '/opt/redmine-1.2.1-1/mysql/data/mysqld.log'.
111026 16:53:14 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-1.2.1-1/mysql/data
/opt/redmine-1.2.1-1/mysql/scripts/ctl.sh : mysql started at port 3316
starting port 3001
starting port 3002
Syntax OK
/opt/redmine-1.2.1-1/apache2/scripts/ctl.sh : httpd started at port 80
数据库可以直接从已经配置好的windows mysql到出成utf8,再在linux下用命令导入即可。
如果不知道Bitnami Stack安装后的mysql用户名密码,可以到apps/FaceProject/config/database.yml中查看。
如果安装时没有选择配置邮件服务器或是需要修改邮件服务器配置,可以直接在
apps/FaceProject/config/email.yml中配置
内容大致如:
production:
delivery_method: :smtp
smtp_settings:
address: smtp.yeah.net
port: 25
domain: yeah.net
authentication: :login
user_name: xxx
password: xxx
development:
delivery_method: :smtp
smtp_settings:
address: smtp.yeah.net
port: 25
domain: yeah.net
authentication: :login
user_name: xxx
password: xxx