> Hi, > > currently rack plugin links to system ruby libraries so it's always using > the > same ruby version as it was compiled against. Unfortunately ruby world > makes > very big deal about versions, so many web apps have very strickt > requirements > about what specyfic ruby version they need. Is there any way (now or in > the > near future) to run one app with ruby 1.8.x and another with 1.9.x with > single > uwsgi? The only way I can think of, is to compile two rack plugins, each > linked to different ruby version, and call them rack18 and rack19. Any > hints? > >
Yes, having two plugins is the recommended way. But remember that you cannot mix ruby 1.8 with ruby 1.9 in the same process, so you have to use different instances. Another trick would be compiling different uwsgi binary versions (remember to call make clean before each re-build): python uwsgiconfig.py --build rack python uwsgiconfig.py --build ruby19 or UWSGICONFIG_RUBYPATH=/usr/bin/ruby1.8 python uwsgiconfig.py --build rack UWSGICONFIG_RUBYPATH=/usr/bin/ruby1.9 python uwsgiconfig.py --build rack -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
