Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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

Jason Lee
September 11, 2015

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

Jason Lee

September 11, 2015
Tweet

Other Decks in Technology

Transcript

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

    CS Master) • as a Ruby Developer since 2012 • Web Developer in
  2. Migrate from MRI Rails 4.2 • byebug -> disable •

    web-console -> disable • binding_of_caller • therubyracer -> therubyrhino
  3. C Extension Alternatives • Nokogiri - pure java version •

    RMagick - RMagick4J • therubyracer - therubyrhino JRuby Wiki:C-Extension-Alternatives
  4. Thread-safety • Rails 本⾝身是 Thread-safe • 第三⽅方 Gems 必須是 Thread-safe

    • Sidekiq Wiki:Problems-and-Troubleshooting#threading • 你的程式碼必須是 Thread-safe
  5. Unlimited Strength Crypto • Install the "Unlimited Strength" policy files

    from Oracle • Disable the crypto restriction programmatically JRuby Wiki:UnlimitedStrengthCrypto
  6. Tzinfo-data • No timezone data source could be found.
 To

    resolve this, either install TZInfo::Data