Prepare the execution files & account
Install rbenv and ruby-build
Install Ruby 2.7.2
Fix permission for CentOS
After upgrade ruby to 2.7.1, I found my old octopress give below two warning:
/usr/local/lib/ruby/gems/2.7.0/gems/rake-11.3.0/lib/rake/application.rb:378: warning: deprecated Object#=~ is called on Proc; it always returns nil
Just need change application.rb:378 as below to fix it.
Another warning is:
/usr/local/lib/ruby/gems/2.7.0/gems/jekyll-0.12.1/lib/jekyll/post.rb:140: warning: URI.escape is obsolete
Just change as below:
After install ruby 2.7.1, found capistrano deploy via puma having below error when restart:
After checking long time found it’s just not install the bundler 1.17.3 as pumactl relay on it.
Notes, still need after capistrano-bundler release 2.0.
Largely following certbot guide
Running CentOS 7 as operation system for Rails is very stable, but such stability comes with stagnation, for example, the sqlite3 version is 3.7 instead of 3.8, so cause Rails 6 refused to run in CentOS 7 withouth install a third party sqlite3 version.
So a quickly fix is install atomic sqlite and setting the correct build options.
Maybe also need to do a patch but any way, I successfully upgrade to Rails 6.
After research 1 hours, I answered in the SO
微信AI开放接口, require that interface.