2020年10月26日 星期一

[redmine][bitnami] How to virtualbox to build redmine quickly

  1. Download ova (virtualbox image) from bitnami webpage
  2. Start ova at virtualbox
  3. INSTALL SQLITE3 GEM FOR RUBY
    gem install sqlite3-ruby
  4. disable bundle deployment mode.
    bundle install --no-deployment
  5. Start to configure the environment settings.
    5-1. Set sqlite database
    cd REDMINE
    CONFIGURE DATABASE
    echo “production:” > config/database.yml &&
    echo " adapter: sqlite3" >> config/database.yml &&
    echo " database: db/redmine.sqlite3" >> config/database.yml
    5-2. POPULATE DATABASE
    cd REDMINE
    rake db:migrate RAILS_ENV=“production”
    rake redmine:load_default_data RAILS_ENV=“production”
    5-3. Create secret_token
    cd REDMINE
    echo “production:” > config/secrets.yml
    echo " secret_key_base: $(rake secret)" >> config/secrets.yml
  6. Change the permission of folder of redmine
    chmod 777 /home/bitnami/apps/redmine -Rf
  7. Restart redmine again
    /home/bitnami/stack
    ./ctlscript.sh restart

0 意見:

張貼留言