- Download ova (virtualbox image) from bitnami webpage
- Start ova at virtualbox
- INSTALL SQLITE3 GEM FOR RUBY
gem install sqlite3-ruby - disable bundle deployment mode.
bundle install --no-deployment - 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 - Change the permission of folder of redmine
chmod 777 /home/bitnami/apps/redmine -Rf - Restart redmine again
/home/bitnami/stack
./ctlscript.sh restart
2020年10月26日 星期一
2017年12月1日 星期五
2017年9月11日 星期一
[Bitnami][Archlinux] How to create two redmine at same bitnami server
- 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"
- Edit above two configuration file separately.
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.confAlias /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
- Restart server
bash ctlscript.sh restart - Browse webpage separately
http://127.0.0.1:8081/redmine/projects
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
sucessfully
訂閱:
文章 (Atom)