如何透過 Warbler 在 JVM 上部署 Rails 應用

48100c6a1c35816b467fb617ffd4cc1f?s=47 Jason Lee
September 11, 2015

如何透過 Warbler 在 JVM 上部署 Rails 應用

48100c6a1c35816b467fb617ffd4cc1f?s=128

Jason Lee

September 11, 2015
Tweet

Transcript

  1. 2.

    關於我 • 李致賢 (Jason Lee) a.k.a LeeChSien • 即將畢業於政治⼤大學 (NCCU

    CS Master) • as a Ruby Developer since 2012 • Web Developer in
  2. 10.
  3. 14.

    Migrate from MRI Rails 4.2 • byebug -> disable •

    web-console -> disable • binding_of_caller • therubyracer -> therubyrhino
  4. 15.

    C Extension Alternatives • Nokogiri - pure java version •

    RMagick - RMagick4J • therubyracer - therubyrhino JRuby Wiki:C-Extension-Alternatives
  5. 16.

    Thread-safety • Rails 本⾝身是 Thread-safe • 第三⽅方 Gems 必須是 Thread-safe

    • Sidekiq Wiki:Problems-and-Troubleshooting#threading • 你的程式碼必須是 Thread-safe
  6. 19.
  7. 21.
  8. 22.
  9. 24.
  10. 31.

    Unlimited Strength Crypto • Install the "Unlimited Strength" policy files

    from Oracle • Disable the crypto restriction programmatically JRuby Wiki:UnlimitedStrengthCrypto
  11. 32.

    Tzinfo-data • No timezone data source could be found.
 To

    resolve this, either install TZInfo::Data