2017年7月20日 星期四

[Redmine][bitnami] How to quick install redmine

Download bitnami - redmine from bitnami - redmine

Change the permission of bitnami-redmine-3.4.2-0-linux-x64-installer.run
chmod 755 bitnami-redmine-3.4.2-0-linux-x64-installer.run

Install bitnami redmine
./bitnami-redmine-3.4.2-0-linux-x64-installer.run --disable_glibcxx_version_check 1


INSTALL SQLITE3 GEM FOR RUBY
/home/happy/webs/redmine-work1/ruby/bin/gem install sqlite3-ruby

Jump to redmine folder
cd /home/happy/webs/redmine-work1/apps/redmine/htdocs
Install the dependencies specified in your Gemfile
Please stay at above folder example, and type following command.
Please modify the string of "/home/happy/webs/redmine-work1" to your real command folder.
/home/happy/webs/redmine-work1/ruby/bin/bundle install --no-deployment

Start to configure the environment settings.
cd /home/happy/webs/redmine-work1/apps/redmine/htdocs
CONFIGURE DATABASE
echo “production:” > config/database.yml &&\
echo ” adapter: sqlite3” >> config/database.yml &&\
echo ” database: db/redmine.sqlite3” >> config/database.yml

POPULATE DATABASE
cd /home/happy/webs/redmine-work1/apps/redmine/htdocs
/home/happy/webs/redmine-work1/ruby/bin/rake db:migrate RAILS_ENV=”production”
/home/happy/webs/redmine-work1/ruby/bin/rake redmine:load_default_data RAILS_ENV=”production”

Create secret_token
cd /home/happy/webs/redmine-work1/apps/redmine/htdocs
echo “production:” > config/secrets.yml &&\
echo ” secret_key_base: $(/home/happy/webs/redmine-work1/ruby/bin/rake secret)” >> config/secrets.yml

Restart the server
cd /home/happy/webs/redmine-work1
bash ctlscript.sh restart

Reference:


How to Modify the port of mysql

Modify the port of mysql
vim ./apache2/conf/bitnami/bitnami.conf +35
modify all 8443 to other port number

Modify the port of http
vim ./apache2/conf/bitnami/bitnami.conf +35
modify all 8081 to other port number

Question:
$ gem install sqlite3
ERROR: Could not find a valid gem ‘sqlite3’ (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)

Answer:
$ gem sources --remove https://rubygems.org/
https://rubygems.org/ removed from sources

$gem sources -a http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/

Ref:

0 意見:

張貼留言