顯示具有 Bitnami 標籤的文章。 顯示所有文章
顯示具有 Bitnami 標籤的文章。 顯示所有文章

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

2017年12月1日 星期五

2017年9月11日 星期一

[Bitnami][Archlinux] How to create two redmine at same bitnami server

  1. Edit /home/happy/webs/redmine/apache2/conf/bitnami/bitnami-apps-prefix.conf
# Bitnami applications installed in a prefix URL
Include "/home/happy/webs/redmine/apps/redmine-another/conf/httpd-prefix.conf"
Include "/home/happy/webs/redmine/apps/redmine/conf/httpd-prefix.conf"
  1. Edit above two configuration file separately.
/home/happy/webs/redmine/apps/redmine/conf/httpd-prefix.conf
Alias /redmine/ "/home/happy/webs/redmine/apps/redmine/htdocs/public/"
Alias /redmine "/home/happy/webs/redmine/apps/redmine/htdocs/public"

Include "/home/happy/webs/redmine/apps/redmine/conf/httpd-app.conf"
/home/happy/webs/redmine/apps/redmine-another/conf/httpd-prefix.conf
Alias /redmine-another/ "/home/happy/webs/redmine/apps/redmine-another/htdocs/public/"
Alias /redmine-another "/home/happy/webs/redmine/apps/redmine-another/htdocs/public"

Include "/home/happy/webs/redmine/apps/redmine-another/conf/httpd-app.conf"
    Edit “/home/freeman/webs/redmine/apps/redmine-another/conf/httpd-app.conf” separately
    RewriteEngine On
    RewriteRule /<none> / [L,R]
    
    <Directory "/home/freeman/webs/redmine/apps/redmine-another/htdocs/public">
        Options -MultiViews
        AllowOverride All
        <IfVersion < 2.3 >
            Order allow,deny
            Allow from all
        </IfVersion>
        <IfVersion >= 2.3>
            Require all granted
        </IfVersion>
    
        PassengerEnabled on
        SetEnv RAILS_RELATIVE_URL_ROOT "/redmine-another"
        PassengerAppRoot "/home/freeman/webs/redmine/apps/redmine-another/htdocs/"
        <IfModule pagespeed_module>
            ModPagespeedDisallow "*"
        </IfModule>
    
    
        Include "/home/freeman/webs/redmine/apps/redmine-another/conf/banner.conf"
    </Directory>
    PassengerPreStart http://127.0.0.1:8081/redmine-another
  1.  Restart server
    bash ctlscript.sh restart
  2. Browse webpage separately
    http://127.0.0.1:8081/redmine/projects
http://127.0.0.1:8081/redmine-another/projects
sucessfully