• Home
  • About
Blue Orange Green Pink Purple

Updating Your Ruby on Rails Application Custom Environment via Passenger Pane

Posted in Mac OS, Tutorial. on Sunday, August 2nd, 2009 by Kang Tags: Passenger, productivity, Ruby on Rails, Tutorial
Aug 02

If you are working with a relatively up-to-date Ruby on Rails stack, chances are you would be using Phusion Passenger to deploy your application. Although passenger makes it extremely easy to deploy and restart your app, it also added a bit more complication when managing the Apache configuration files. The Passenger Pane (for Mac only) helped alleviate this problem by providing a nice little visual panel in your Mac’s Preference Pane:

Passenger Pane in System Preferences

Inside Passenger Pane

The nifty little add-on allows you to easily add a new Rails project, set it to development or production mode, and also restart it. It’s great if you are not sure/forgot where all the virtual host files are for your apache configuration.

Dragging project to Textmate

As with all things in life, nothing is perfect. In this case, I work on a project with multiple environments: development, staging, preprodstaging, and production just to name a few. The passenger pane was great when you just had to choose between development or production but what do you do if your desired environment is named something else? Don’t sweat, apparently there’s a simple little trick to customize your configuration file exactly to your liking even if the pane does not offer those options. To do so, simply select the project your want to edit from the project list and then drag the it to your favorite text editor on the dock, in this case, Textmate.Now that the file is opened in the editor, edit to your heart’s content, save, restart your passenger instance for the project and you are ready to see your updated changes!

Ruby on Rails application configuration in Textmate

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • NewsVine
  • RSS
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

22 Comments

  1. apodkolzin on December 25th, 2009

    I want to quote your post in my blog. It can?
    And you et an account on Twitter?

  2. Kang on December 30th, 2009

    Sure, feel free to do so.

  3. Panic Attack on March 7th, 2010

    Wonderful blog post! This can aid some people learn about this matter. Would you like to incorporate video clips besides these? It will without any doubt help out. Your reason was spot on and owing to you; I perhaps will not discuss all sorts of things to my buddies. I could simply direct them here.

  4. Kraig Mannan on March 9th, 2010

    Found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later .. Big thanks for the useful info i found on Xplor Digital BLog | Web Development Blog.

  5. loans on March 9th, 2010

    I want to thank the blogger very much not only for this post but also for his all previous efforts. I found kang-chen.com to be very interesting. I will be coming back to kang-chen.com for more information.

  6. diets that work on March 14th, 2010

    Keep up the great posts. I really like reading your posts. Thanks.

  7. diets that work on March 15th, 2010

    Keep up the great articles. I really like reading what you have to say. Thanks.

  8. jimmboi on April 9th, 2010

    Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now. Keep it up!
    And according to this article, I totally agree with your opinion, but only this time! :)

  9. Mariam Ledezma on April 22nd, 2010

    Your header is a bit wonky in Opera, mate.

  10. Top Song Lyrics on April 29th, 2010

    Thanks for a awesome post and interesting comments. I found this post while surfing the web for some random stuff. Thanks for sharing this article.

  11. steel golfclubs on May 11th, 2010

    Thank You For This Blog, was added to my bookmarks.

  12. vemma on May 16th, 2010

    Very Interesting Post! Thank You For Thi Post!

  13. best cheap website hosting on May 22nd, 2010

    Hey, found your site by accident doing a search on Ask but I’ll definitely be returning. As for your post… I agree with a lot of what you’ve said but wouldn’t it be just as easy to move on? I mean why screw around with your quality of life if you don’t have to?

  14. Canon wide angle lenses on May 31st, 2010

    Very Interesting Post! Thank You For Thi Post!

  15. Na Zdrowie on June 1st, 2010

    I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.

  16. Fotki on June 1st, 2010

    I just book marked your blog on Digg and StumbleUpon.I enjoy reading your commentaries.

  17. Kosmetyki Naturalne on June 3rd, 2010

    Very informative post. Thanks for taking the time to share your view with us.

  18. steel golf clubs on June 4th, 2010

    Very Interesting Information! Thank You For Thi Post!

  19. power on June 4th, 2010

    Hey this is a great article. I’m going to email this to my buddies. I stumbled on this while surfing for some rock lyrics, I’ll be sure to visit regularly. thanks for sharing.

  20. best beauty products on June 11th, 2010

    I’m pretty new to BlogEngine and noticed that a number of your other readers have different

  21. Mark Vice on June 12th, 2010

    I love it!

  22. Jeannie Gongalves on July 27th, 2010

    Just to remark that your post is awesome.. The lucidity in your publish is simply magnificent and i can take for given you are an specialist on this theme.



Leave a Reply

One Giant Robot After Another

  • Recent Ramblings
    • Improving VLC Player load times of .MKV files on Snow Leopard
    • Updating Your Ruby on Rails Application Custom Environment via Passenger Pane
    • Enhanced Open Terminal Here, for Leopard at Maururu
    • Inserting new line in echo command
    • One Giant Robot After Another
  • What I'm Doing...
    • Not looking forward to weeks where I can see most of the time will be in meetings and it's only Monday 3 weeks ago
    • finally broke the strings on my game racquet http://yfrog.com/0p8fxnj 3 weeks ago
    • bart stopped again due to "unauthorized person on the trackway"... I am really not having much luck with bart every time I come to downtown 3 weeks ago
    • More updates...
  • Calendar
    August 2009
    M T W T F S S
    « Jul   Nov »
     12
    3456789
    10111213141516
    17181920212223
    24252627282930
    31  
  • Tags
    apple applications featured hosting iPhone Mac OS X Passenger performance productivity review Ruby on Rails shell scripting Snow Leopard technical tips Tutorial
  • Archives
    • November 2009
    • August 2009
    • July 2009
    • June 2009
  • Search






  • Home
  • About

© Copyright One Giant Robot After Another. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top