Browse Source

Add Ruby upgrade information to manual installation update guide

Dominik Sander 5 years ago
parent
commit
a837283991
2 changed files with 26 additions and 6 deletions
  1. 2 2
      doc/manual/installation.md
  2. 24 4
      doc/manual/update.md

+ 2 - 2
doc/manual/installation.md

@@ -72,8 +72,8 @@ Remove the old Ruby versions if present:
 Download Ruby and compile it:
 
     mkdir /tmp/ruby && cd /tmp/ruby
-    curl -L --progress https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2 | tar xj
-    cd ruby-2.5.1
+    curl -L --progress https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.5.tar.bz2 | tar xj
+    cd ruby-2.6.5
     ./configure --disable-install-rdoc
     make -j`nproc`
     sudo make install

+ 24 - 4
doc/manual/update.md

@@ -50,7 +50,27 @@ Restore backed up files
 sudo -u huginn -H cp Procfile.bak Procfile
 ```
 
-### 4. Install gems, migrate and precompile assets
+### 4. Update ruby version
+
+Ensure you have Ruby 2.5+ installed:
+
+```
+ruby -v
+```
+
+Upgrade when required:
+
+```
+mkdir /tmp/ruby && cd /tmp/ruby
+curl -L --progress https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.5.tar.bz2 | tar xj
+cd ruby-2.6.5
+./configure --disable-install-rdoc
+make -j`nproc`
+sudo make install
+sudo gem install rake bundler foreman --no-document
+```
+
+### 5. Install gems, migrate and precompile assets
 
 Ensure you have rubygems 2.7.0+ installed:
 
@@ -74,7 +94,7 @@ sudo -u huginn -H bundle exec rake assets:clean assets:precompile tmp:cache:clea
 
 ```
 
-### 5. Update the Procfile
+### 6. Update the Procfile
 
 Check for changes made to the default `Procfile`
 ```
@@ -86,7 +106,7 @@ Update your `Procfile` if the default options of the version you are using chang
 sudo -u huginn -H editor Procfile
 ```
 
-### 6. Update the .env file
+### 7. Update the .env file
 
 Check for changes made to the example `.env`
 ```
@@ -99,7 +119,7 @@ sudo -u huginn -H editor .env
 ```
 
 
-### 7. Export init script and start Huginn
+### 8. Export init script and start Huginn
 
 ```
 # Export the init script