March 11th, 2010

Deploy rails app on a suburi

No Comments », Linux, RoR, by nolifelover

หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน url ใด ซึ่งในส่วนของการ deploy ผมได้ deploy apache+mod_proxy+mongrel ซึ่งผมจะมาเขียนที่หลังละกันครับ
สำหรับการทำให้ rails deploy บน suburi ทำได้ดังนี้ครับ โดยการแก้ไขในส่วนของ environment.rb

config.action_controller.relative_url_root = "/rails"

เป็นอันว่าเรียบร้อย

Related posts:

  1. Install and Deploy Rails with Apache Modrails ...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply