环境搭建
参考:
https://gitlab.com/gitlab-org/gitlab-development-kit
注意事项
ruby版本
一定使用rvm等ruby管理软件来安装,不要使用系统自带版本。
参考http://chockfullweb.com/installing-ruby-mavericks
安装完成后
echo "source $HOME/.rvm/scripts/rvm >> ~/.bash_profile"
source ~/.bash_profile
pg安装
如果在mac上开发,并使用postgresql进行开发,安装时可能会碰到问题。
办法是先卸载postgresql,然后重新安装postgresql.
nokogiri
使用默认依赖
bundle config build.nokogiri --use-system-libraries
IDE
使用rubymine进行开发。
打开gitlab项目
设置运行环境为foreman和bundle
rubymine–>run–>edit configuraion—>添加“gem command”运行方式。