I'm beginning my world diving into ruby and rails development. I'm 2 days into it and I'm liking it so far. I'm finally understanding what people are talking about when it comes to github, forking, heroku, and more. So why am I building this post?
Well I had some trouble getting started with Aptana, sqlite3, and heroku. When you start pushing packages into heroku, it doesn't like sqlite3. Sqlite3 is what is used out of the box when creating a standard Rails project and works well for what it does. However, heroku doesn't use sqlite3 and will fail on every upload because your app isn't using PostgreSQL. PostgreSQL is a much more resilient database with more features that should be used over sqlite3 on any "production" application. So the first goal was to make any new Ruby on Rails project use PostgreSQL using Aptana. The second goal, was to make sure I had PostgreSQL setup correctly. Of course, step 2 needs to be done before step 1.
If you follow this guide, it will save you the few hours of time it took me to get this working correctly. I'm using a mac so take that for what it is. Railscasts #342 Migrating to PostgreSQL was a great starting point for me and deserves a majority of the thanks.
Add a comment