Content
Installation Windows
*Many thanks to Paul Onwude for this guide. Original posted here
Install ruby on rails*
http://railsinstaller.org/en
After Ruby installation, you wil be guided to the c:\Sites folder. Clone the OpenProject repository into that directory
git clone https://github.com/opf/openproject.git cd openproject git checkout stable
Modify gemfile in c:\sites\openproject
comment out THERUBYRACER by adding # in front of it (I believe this is not required for openproject to run)
Install the libv8 gem manually
gem install libv8 v '3.11.8.17' -- --with-system-v8
download mysql connector from the URL below
http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip/from/pick
copy mysql folder to a convenient location (e.g c:/mysql)
Install mysql2 gem
gem install mysql2 -- '--with-mysql-dir="C:/mysql/"' (Note i used c:\mysql but the slash is the other way)
copy libmysql.dll from the Mysql connector folder to bin folder of Rails Installer (C:\RailsInstaller\Ruby1.9.3\bin)
Run the main bundle installation (it should complete without errors)
bundle install --without rmagick
Modify database.yml and config.yml according to instruction in the manual. (I followed the Ubuntu Steps)
Setup databases according to instruction in the manual. (I followed the Ubuntu Steps)*
From here on, the steps in the manual should work without errors
bundle exec rake db:create:all bundle exec rake db:migrate bundle exec rake db:seed bundle exec rake generate_secret_token
Start Rails server for development environment
bundle exec rails server
Login to openproject on localhost:3000
username: admin
password: admin
Update
For Production environment
bundle update (This does not work everytime so if it breaks your install, pull the latest clone and bundle install without update) bundle install
Precompile all your assets (if you do not do this, your production will keep flagging errors)
(It takes a really long time to complete depending on the speed of you machine)
(Run with —trace to see verbose mode)
bundle exec rake assets:precompile
Change a setting in the config/production.rb file (set to true)
config.serve_static_assets = true
Set rails environment to production (This is critical else rails will not start in production mode)
set RAILS_ENV=production
Create (if not already done), migrate and seed production database
bundle exec rake generate_secret_token bundle exec rake db:migrate bundle exec rake db:seed
Start Rails server for production environment
bundle exec rails server
I am a little concerned about performance issues so i will monitor for a while.