redmine 2.2.2+git ubuntu下安裝

來源:互聯網
上載者:User

redmine 2.2.2+git ubuntu下安裝 下載redmine:svn co http://svn.redmine.org/redmine/branches/2.2-stable redmine-2.2安裝前提軟體: sudo apt-get install libpq-devsudo apt-get install imagemagicksudo apt-get install libmagickwand-devsudo apt-get install gcc g++ build-essential libssl-dev libreadline-dev zlib1g-dev linux-headers-generic libyaml-devsudo apt-get install libsqlite3-devexport RUBYOPT="-KU -E utf-8:utf-8" 安裝:安裝ruby:sudo apt-get install curl sudo apt-get install git-coresudo apt-get install libssl-dev(否則gem不能使用)sudo apt-get install libxslt-dev libxml2-dev (不裝bundle install會出錯)sudo apt-get install libmysql-ruby libmysqlclient-dev(用於mysql)sudo apt-get install libsqlite3-dev(用於sqlite)sudo apt-get install zlib1g-dev(否則不能建立工程)sudo apt-get install nodejs(一定要不然會報ExecJS::RuntimeError in Welcome#index錯誤)sudo apt-get install g++ (安裝thin,eventmachine之類的時候會用到)bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)source /home/larry/.rvm/scripts/rvmruby:rvm install ruby 1.9.2 or rvm install jruby-1.7.0.preview1rvm --default use 1.9.2 or rvm --default use jrubyruby -vrails:gem -vgem update --systemgem update安裝bundergem install bundlerbundle install --without development test配置mysqlcreate database redmine character set utf8;create user 'redmine'@'localhost' identified by 'my_password';grant all privileges on redmine.* to 'redmine'@'localhost';grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'my_password'; 複製 config/database.yml.example to config/database.ymlproduction:adapter: mysqldatabase: redminehost: localhostusername: redminepassword: my_password rake generate_secret_tokenRAILS_ENV=production rake db:migrateRAILS_ENV=production rake redmine:load_default_datamkdir tmp tmp/pdf public/plugin_assetssudo chown -R redmine:redmine files log tmp public/plugin_assetssudo chmod -R 755 files log tmp public/plugin_assetsruby script/rails server webrick -e production查看http://localhost:3000/. git使用“配置”頁面,點擊“版本庫”標籤,SCM的下拉式功能表中選擇Git,Path to repository輸入框中輸入Git庫的*本地絕對路徑*。然後點擊儲存即可 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.