Ruby on rails problems on heroku - ruby-on-rails-3

I've been working on a on uploading my RoR3 website onto Heroku.
Took me a while to get it up. Seems to work pretty good but when i try creating a project (my website manges donation projects) i get the next message:
We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly.
No idea what causes this it works fine on my localhost.

The normal Rails Error - Have a look at the Heroku Logs and check the Stack for more details then post them back on here.

Usually when I've had this problem, it's because I've forgotten to run db migrations at Heroku.
In terminal, in your rails app folder, run this:
heroku rake db:migrate
If needed, you can find more info in this thread.

Related

I got error while deploying my app on heroku

Hey guys i got stuck in that error i did all the steps right but it still not work,my deploy failed after all this is the error i got, please help me i want to deploy my app for demonstration purposes i tried to reinstall my heroku cli and that does not work too
here are the logs
what i got on the browser when i try to open the app
Your app crashed and the logs do not show the real error, so you should SSH on the dyno to read the logs (they gave the path).
It's doable with the CLI: https://devcenter.heroku.com/articles/exec
What type of error you are facing. If this is about deploying and git push etc then tell me about the error.Please specify your problem.

Does 'heroku restart' automatically calls the initializers in a rails app?

I've recently added some codes in the initialiser file of my rails application. Like any other rails app, I have to restart the app for it to call the initializers again. Does 'heroku restart' does the same thing (after committing the files etc.)? If not, what's the correct method to run the initialisers files in heroku? Thanks! :)
On pushing your app a new slug is compiled and started, so your rails app gets basically restarted every time you push a new version. heroku restart will let you restart your processes without pushing and should be done for example after migrating your database with heroku run rake db:migrate.
initializers are run when the application is launched. restarting the application stops it, then launches it.. so yes. :)

Heroku App crashed (Error H10)

I have an app which runs on rails 3.2.2 and uses postgres, I've deployed it to my heroku server before and it worked great.
In my last deploymend I didn't see any bugs in the deploy description but when I visited the app I saw it was down.
So I ran
heroku logs --app my_app_name
and this is what I got:
https://gist.github.com/2935603
I have no idea what is the problem.
Thanks for caring!
check http://status.heroku.com - the platform is currently having issues.

Heroku - New Relic Agent not running error on rake db:migrate

First time I've seen this error when running a migration on Heroku.
heroku rake db:migrate --app myapp
(in /app)
New Relic Agent not running.
I have the New Relic addon in my app addons so would this be an issue with the heroku platform or my app?
edit: App is running on the bamboo-ree-1.8.7 stack.
The answer is that Heroku is telling you that the New Relic Agent is not running in that environment when you run rake, however rake db:migrate is still working, so actually everything is working as it should.
Simply run your rake db:migrate, ignore the New Relic message, then heroku restart and everything should be working just fine.
Seems this was a simple fix. The new relic addon on Heroku stopped working and simply required me to remove and add it back to my application.

Cannot Deploy App w/ Heroku - Rake::DSL Error

I'm using Rails v. 3.0.9 and have pushed the app to Heroku. When I view the custom Heroku domain I get the following message from Heroku:
"We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly."
I run heroku logs and don't seem to get any error messages. The only error I encounter with Heroku seems to be when I run heroku rake db:migrate with which I get the following in return:
rake aborted!
uninitialized constant Rake::DSL
Note: I'm new to Rails and to Heroku. I'm not quite understanding the difference between production and development environments. Do I need to be in production for Heroku to work? At the moment, I'm using localhost3000 to view my app. Thanks guys!
I have a blog post about it here:
http://codeglot.com/posts/13-you_have_already_activated_rake_0_9_2
There are two solutions. Use an older version of rake or require DSL.