ga-dc / wdi5-project4

3 stars 0 forks source link

heroku loading error #123

Closed AliTopal89 closed 9 years ago

AliTopal89 commented 9 years ago

screen shot 2015-06-04 at 8 37 37 pm

AliTopal89 commented 9 years ago

I get this error from heroku logs: 2015-06-05T00:49:21.810543+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=i-like-dating-website.herokuapp.com request_id=804946da-9817-4a07-ba74-c0b4c74af188 fwd="50.200.196.50" dyno= connect= service= status=503 bytes=

RobertAKARobin commented 9 years ago

Try replacing the app.listen portion of your server file with something like this:

app.listen(process.env.PORT || 5000, function(){
  console.log("app listening on port 5000")
})
AliTopal89 commented 9 years ago

screen shot 2015-06-04 at 9 05 24 pm

RobertAKARobin commented 9 years ago

Did you heroku restart?

RobertAKARobin commented 9 years ago

Wait a sec. Is this Rails or Node?

https://github.com/AliTopal89/wdi-project-4/tree/master/DatingApp

AliTopal89 commented 9 years ago

rails

RobertAKARobin commented 9 years ago

Oops. I take it back.

AliTopal89 commented 9 years ago

still have the same error

AliTopal89 commented 9 years ago

heroku create i-like-dating-website git remote -v git subtree push --prefix DatingApp heroku master heroku run rake db:migrate

is what I did

AliTopal89 commented 9 years ago

then I did heroku open https://github.com/AliTopal89/wdi-project-4

AliTopal89 commented 9 years ago

then I did heroku open from: https://github.com/AliTopal89/wdi-project-4 *

RobertAKARobin commented 9 years ago

Replace the mailboxer line in your Gemfile with this:

gem 'mailboxer', :git => 'git://github.com/div/mailboxer.git', :branch => 'rails42-foreigner'

http://stackoverflow.com/questions/26660640

AliTopal89 commented 9 years ago

still I get the same error message :(

RobertAKARobin commented 9 years ago

heroku run bundle install

AliTopal89 commented 9 years ago

then should I do heroku run rake db:migrate

AliTopal89 commented 9 years ago

still same error message :(

RobertAKARobin commented 9 years ago

Push to a new Heroku app.

git remote remove heroku
heroku create
git add .
git commit -m "whatever"
git push heroku master
heroku run rake db:migrate
heroku open
AliTopal89 commented 9 years ago

error: Could not remove config section 'remote.heroku'

RobertAKARobin commented 9 years ago

Wat. That happens after git remote remove heroku?

AliTopal89 commented 9 years ago

yep

AliTopal89 commented 9 years ago

ok sort of worked, thank you Robin

AliTopal89 commented 9 years ago

adding gem 'mailboxer', :git => 'git://github.com/div/mailboxer.git', :branch => 'rails42-foreigner' definitely helped after Robin's help I just deleted the app from heroku and created a new one