Undefined path_separator method for Gem: Module

I am running a ruby ​​and rails application via jenkins in passenger / nginx. The successful creation of the application by Jenkins. but the website displays an error below the passenger.

Ruby (Rack) application could not be started. Error message: undefined method `path_separator' for Gem:Module 
+6
source share
1 answer

The executable version of Gem too old to have this method.

You can update:

 gem update --system 

But there may be other problems with starting your application in the old version of Ruby, for example, 1.9. Only versions 2.2 and higher are currently supported.

You might want to learn Jenkins to use the same version of Ruby that you use at runtime with RVM or Docker .

0
source

Source: https://habr.com/ru/post/954404/


All Articles