如何將Turnkey Redmine 虛擬機器從Redmine 1.0.5 升級到1.2

來源:互聯網
上載者:User

#0

/etc/init.d/apache2 stop

#1
cd /var/www

#2
mv railsapp railsappOLD

#3
svn co http://redmine.rubyforge.org/svn/branches/1.2-stable railsapp

#4
cp ./railsappOLD/config/database.yml  ./railsapp/config/database.yml

#5
cp ./railsappOLD/config/email.yml  ./railsapp/config/email.yml

#6
cp -r ./railsappOLD/files ./railsapp/files

#7
sudo chown -R root:www-data /var/www/railsapp

#8
cd /var/www/railsapp

#9 (inside the /var/www/railsapp folder)
sudo chown -R www-data:www-data files log tmp

#10 (this command takes a little time - be patient)
gem install rails -v=2.3.11

#11
gem install rack

#12
gem install rack -v=1.1.1

#13 (inside the /var/www/railsapp folder)
rake generate_session_store

#14 (inside the /var/www/railsapp folder)
rake db:migrate RAILS_ENV=production

#15 (inside the /var/www/railsapp folder)
sudo chown -R www-data:www-data files log tmp public/plugin_assets

#16 (inside the /var/www/railsapp folder)
rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production

#17 (inside the /var/www/railsapp folder)
rake db:migrate_plugins RAILS_ENV=production
 
#18
sudo chmod -R 755 files log/ tmp/ public/plugin_assets
 
#19 (inside the /var/www/railsapp folder)
rake tmp:cache:clear

#20 (inside the /var/www/railsapp folder)
rake tmp:sessions:clear

#21

/etc/init.d/apache2 start

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.