deploying to heroku

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

deploying to heroku

Joe Guerra
Hi, I'm not sure why my app on heroku is crashing.  
I've added a requests controller, and everything works locally using sqlite.  


here's my log from heroku...

2017-05-27T13:07:36.250694+00:00 app[web.1]:    [1m [35mUser Load (1.7ms) [0m  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 11]]
2017-05-27T13:07:36.253544+00:00 app[web.1]: Completed 500 Internal Server Error in 8ms (ActiveRecord: 1.7ms)
2017-05-27T13:07:36.254583+00:00 app[web.1]: 
2017-05-27T13:07:36.254585+00:00 app[web.1]: NameError (uninitialized constant RequestsController::Request):
2017-05-27T13:07:36.254586+00:00 app[web.1]:   app/controllers/requests_controller.rb:12:in `index'
2017-05-27T13:07:36.254586+00:00 app[web.1]: 

What's causing this?  any suggestions?
Thanks,
Joe

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/75f23d83-3b51-4e4c-b408-0b1d8e8f0cb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: deploying to heroku

nynhex
Is your controller class name named properly and have you committed this controller to version control before deploying to Herkoku?

Sent from my iPhone

On May 27, 2017, at 8:15 AM, Joe Guerra <[hidden email]> wrote:

Hi, I'm not sure why my app on heroku is crashing.  
I've added a requests controller, and everything works locally using sqlite.  


here's my log from heroku...

2017-05-27T13:07:36.250694+00:00 app[web.1]:    [1m [35mUser Load (1.7ms) [0m  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 11]]
2017-05-27T13:07:36.253544+00:00 app[web.1]: Completed 500 Internal Server Error in 8ms (ActiveRecord: 1.7ms)
2017-05-27T13:07:36.254583+00:00 app[web.1]: 
2017-05-27T13:07:36.254585+00:00 app[web.1]: NameError (uninitialized constant RequestsController::Request):
2017-05-27T13:07:36.254586+00:00 app[web.1]:   app/controllers/requests_controller.rb:12:in `index'
2017-05-27T13:07:36.254586+00:00 app[web.1]: 

What's causing this?  any suggestions?
Thanks,
Joe

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/75f23d83-3b51-4e4c-b408-0b1d8e8f0cb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/37E839DA-2EE5-45FD-BF41-533367944810%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: deploying to heroku

Joe Guerra
Yes, I believe so.  

On Sat, May 27, 2017 at 9:18 AM, nynhex <[hidden email]> wrote:
Is your controller class name named properly and have you committed this controller to version control before deploying to Herkoku?

Sent from my iPhone

On May 27, 2017, at 8:15 AM, Joe Guerra <[hidden email]> wrote:

Hi, I'm not sure why my app on heroku is crashing.  
I've added a requests controller, and everything works locally using sqlite.  


here's my log from heroku...

2017-05-27T13:07:36.250694+00:00 app[web.1]:    [1m [35mUser Load (1.7ms) [0m  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 11]]
2017-05-27T13:07:36.253544+00:00 app[web.1]: Completed 500 Internal Server Error in 8ms (ActiveRecord: 1.7ms)
2017-05-27T13:07:36.254583+00:00 app[web.1]: 
2017-05-27T13:07:36.254585+00:00 app[web.1]: NameError (uninitialized constant RequestsController::Request):
2017-05-27T13:07:36.254586+00:00 app[web.1]:   app/controllers/requests_controller.rb:12:in `index'
2017-05-27T13:07:36.254586+00:00 app[web.1]: 

What's causing this?  any suggestions?
Thanks,
Joe

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/75f23d83-3b51-4e4c-b408-0b1d8e8f0cb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/37E839DA-2EE5-45FD-BF41-533367944810%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAOFgAMnYrt%2BazpCGQvMh%3Djdw5TyhHHTXiZbz9F4HTnN%3Djktpdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: deploying to heroku

Hassan Schroeder-2
In reply to this post by Joe Guerra
On Sat, May 27, 2017 at 6:15 AM, Joe Guerra <[hidden email]> wrote:
> Hi, I'm not sure why my app on heroku is crashing.
> I've added a requests controller, and everything works locally using sqlite.

"works" in the sense that you have tests for this part of your code?

That aside, having a "requests" controller sounds like a phenomenally
bad idea -- "request" and "response" have very specific meanings in
any web application, and in the case of Rails request() is an instance
method of ActionController::Base.

I would strongly recommend changing the name of that controller :-)

--
Hassan Schroeder ------------------------ [hidden email]
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDAbayWntKqCuUES1M5bAorxiZkfq5h3Syn%3D30%2B76k07Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: deploying to heroku

nynhex
Good call on this one, request and response are almost reserved naming conventions in rails.

> On May 27, 2017, at 9:32 AM, Hassan Schroeder <[hidden email]> wrote:
>
> On Sat, May 27, 2017 at 6:15 AM, Joe Guerra <[hidden email]> wrote:
>> Hi, I'm not sure why my app on heroku is crashing.
>> I've added a requests controller, and everything works locally using sqlite.
>
> "works" in the sense that you have tests for this part of your code?
>
> That aside, having a "requests" controller sounds like a phenomenally
> bad idea -- "request" and "response" have very specific meanings in
> any web application, and in the case of Rails request() is an instance
> method of ActionController::Base.
>
> I would strongly recommend changing the name of that controller :-)
>
> --
> Hassan Schroeder ------------------------ [hidden email]
> twitter: @hassan
> Consulting Availability : Silicon Valley or remote
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDAbayWntKqCuUES1M5bAorxiZkfq5h3Syn%3D30%2B76k07Q%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/A0F45EB2-F86C-4B8E-BFB3-5240EE464B3A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: deploying to heroku

Joe Guerra
oh, I don't know what happened.  But  I pushed it up to github again and deployed it on heroku and it works . now.
Must have been a few files that were not included in the original push.

Thanks,
Joe

On Saturday, May 27, 2017 at 11:03:40 AM UTC-4, nynhex wrote:
Good call on this one, request and response are almost reserved naming conventions in rails.

> On May 27, 2017, at 9:32 AM, Hassan Schroeder <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2VPg7donCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hassan.s...@...> wrote:
>
> On Sat, May 27, 2017 at 6:15 AM, Joe Guerra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2VPg7donCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">JGu...@...> wrote:
>> Hi, I'm not sure why my app on heroku is crashing.
>> I've added a requests controller, and everything works locally using sqlite.
>
> "works" in the sense that you have tests for this part of your code?
>
> That aside, having a "requests" controller sounds like a phenomenally
> bad idea -- "request" and "response" have very specific meanings in
> any web application, and in the case of Rails request() is an instance
> method of ActionController::Base.
>
> I would strongly recommend changing the name of that controller :-)
>
> --
> Hassan Schroeder ------------------------ <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2VPg7donCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">hassan.s...@...
> twitter: @hassan
> Consulting Availability : Silicon Valley or remote
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2VPg7donCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2VPg7donCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDAbayWntKqCuUES1M5bAorxiZkfq5h3Syn%3D30%2B76k07Q%40mail.gmail.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDAbayWntKqCuUES1M5bAorxiZkfq5h3Syn%3D30%2B76k07Q%40mail.gmail.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDAbayWntKqCuUES1M5bAorxiZkfq5h3Syn%3D30%2B76k07Q%40mail.gmail.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDAbayWntKqCuUES1M5bAorxiZkfq5h3Syn%3D30%2B76k07Q%40mail.gmail.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1842ec4d-8d64-4cdc-9fa1-f22c4d131da4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...