Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Ruby, Sinatra, DataMapper, and Heroku...what am I missing?
New Posts  All Forums:Forum Nav:

Ruby, Sinatra, DataMapper, and Heroku...what am I missing?

post #1 of 3
Thread Starter 
All I'm trying to do is deploy an app I made using Heroku, because it seemed simple enough when I read the instructions on various sites explaining how to do this.

1.)Make a heroku account and install it
2.)Make a config.ru file in the root directory of the project containing

require 'movies' #movies is the name of my app
run Sinatra::Application

3.)Create the app on Heroku ($ heroku create)
4.) Use git and push the app to Heroku ($ git push heroku master)

I do all of this, and my app is being pushed to Heroku, but all I get is an application error when I load the URL in a browser. So I run $ heroku logs, and just get something telling me that it crashed, not giving me a clue as to why. I was starting to think maybe it had to do with the database? So I decided to try deploying a simple "hello world" app using these same steps and I get the exact same error. What am I missing here? I even tried using Bundler to make sure it gets all the required gems.

Link to github repository is https://github.com/bgerke/Ruby-Project for anyone who is interested in helping me.
Edited by Simple_echo - 5/23/11 at 1:31am
    
CPUMotherboardGraphicsRAM
i5-2300 Gigabyte GA-H61N-USB3 Sapphire Vapor-X 5770 8GB DDR3 
Hard DriveHard DriveCoolingOS
Samsung Spinpoint F3  Intel X25-M Corsair H50 Windows 7 Pro 64bit  
MonitorMonitorMonitorKeyboard
Samsung PX2370 HP 2311x Acer A231H Microsoft Arc 
PowerCaseMouse
OCZ ModXStream Pro 500W Cosmos 1000 Microsoft Arc Touch Mouse 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i5-2300 Gigabyte GA-H61N-USB3 Sapphire Vapor-X 5770 8GB DDR3 
Hard DriveHard DriveCoolingOS
Samsung Spinpoint F3  Intel X25-M Corsair H50 Windows 7 Pro 64bit  
MonitorMonitorMonitorKeyboard
Samsung PX2370 HP 2311x Acer A231H Microsoft Arc 
PowerCaseMouse
OCZ ModXStream Pro 500W Cosmos 1000 Microsoft Arc Touch Mouse 
  hide details  
Reply
post #2 of 3
Thread Starter 
Now I added DataMapper to the Gemfile, and it installed it. Added
`require 'bundler/setup'` to movies.db, and changed `require "movies"`
to `require File.dirname(__FILE__)+"/movies"` in the config file. Everything pushed to Heroku just fine after these changes, but I still get errors that I'm
not sure how to solve.

/app/.bundle/gems/ruby/1.9.1/gems/dm-core-1.1.0/lib/dm-core/adapters.rb:163:in
`require': no such file to load -- dm-sqlite-adapter (LoadError)
    
CPUMotherboardGraphicsRAM
i5-2300 Gigabyte GA-H61N-USB3 Sapphire Vapor-X 5770 8GB DDR3 
Hard DriveHard DriveCoolingOS
Samsung Spinpoint F3  Intel X25-M Corsair H50 Windows 7 Pro 64bit  
MonitorMonitorMonitorKeyboard
Samsung PX2370 HP 2311x Acer A231H Microsoft Arc 
PowerCaseMouse
OCZ ModXStream Pro 500W Cosmos 1000 Microsoft Arc Touch Mouse 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i5-2300 Gigabyte GA-H61N-USB3 Sapphire Vapor-X 5770 8GB DDR3 
Hard DriveHard DriveCoolingOS
Samsung Spinpoint F3  Intel X25-M Corsair H50 Windows 7 Pro 64bit  
MonitorMonitorMonitorKeyboard
Samsung PX2370 HP 2311x Acer A231H Microsoft Arc 
PowerCaseMouse
OCZ ModXStream Pro 500W Cosmos 1000 Microsoft Arc Touch Mouse 
  hide details  
Reply
post #3 of 3
Thread Starter 
added
`gem 'dm-sqlite-adapter' `
to the gemfile, and now things appear on the page at least.


The new problem is that when anything is submitted with the form there is an internal server error. According to the heroku logs I'm trying to write to a read only database, so I need to figure out how to change it to a read/write. Still wondering how it ended up as a read only to begin with.
    
CPUMotherboardGraphicsRAM
i5-2300 Gigabyte GA-H61N-USB3 Sapphire Vapor-X 5770 8GB DDR3 
Hard DriveHard DriveCoolingOS
Samsung Spinpoint F3  Intel X25-M Corsair H50 Windows 7 Pro 64bit  
MonitorMonitorMonitorKeyboard
Samsung PX2370 HP 2311x Acer A231H Microsoft Arc 
PowerCaseMouse
OCZ ModXStream Pro 500W Cosmos 1000 Microsoft Arc Touch Mouse 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i5-2300 Gigabyte GA-H61N-USB3 Sapphire Vapor-X 5770 8GB DDR3 
Hard DriveHard DriveCoolingOS
Samsung Spinpoint F3  Intel X25-M Corsair H50 Windows 7 Pro 64bit  
MonitorMonitorMonitorKeyboard
Samsung PX2370 HP 2311x Acer A231H Microsoft Arc 
PowerCaseMouse
OCZ ModXStream Pro 500W Cosmos 1000 Microsoft Arc Touch Mouse 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Ruby, Sinatra, DataMapper, and Heroku...what am I missing?