SQLTerminal.app
now available

XPath.app
now available
Want fresh tech tips in your inbox?

Deploying to Dreamhost

       

Remember to include the host declaration in the database.yml file when you deploy to Dreamhost. Dreamhost does not use "localhost" which is typically the default setting when using the mysql adapter and developing locally or even on a small site.

At least for me, when I ported a Rails app to Dreamhost, this was the only "Gotcha", because my log files were not reporting any errors and were instead serving the 500 something went wrong file. A sample config/database.yml file


production:
  adapter: mysql
  username: youruser
  password: yourpasswd
  database: ror_production_db
  host: mysql.yourdomain.com

To port, I unpack my gems, if I haven't already


rake gems:unpack
Then I freeze and package rails w/ my app just in case versions aren't exact

rake rails:freeze:gems
Then I upload to Dreamhost!

Tagged w/ #configuration #dreamhost #freeze #gems #mysql #port #rails #unpackposts

Apps I've Built

XPath Expression Editor
Practice and improve your XPath skills with XPath Editor
Click to buy on the App Store
Photo Location Changer
Easily change the location on your photos and videos
Click here for more info about the app
Photo Date Changer
Easily change the dates and times on your photos and videos
Click here for more info about the app
VocabReminder
English dictionary with notifications so you won't forget what you're studying!
Click here for more info about the app
VocabQuiz
The app that quizzes and scores you on your vocabulary!
Click here for more info about the app