Re: Accessing server app on Heroku from a local client
Yikes ;) so the idea is that the ScalaServlet should be mixed with CORSSupport? as of now it looks like this class UserServlet extends ScalatraServlet with LiftJsonRequestBody { so ideally class UserServlet extends ScalatraServlet with LiftJsonRequestBody with CORSSupport { should do the magic? of course I need to see deeper into what the 200 lines of this trait end up doing. Regards | Vikas www.knoldus.com blog.knoldus.com On Thursday, June 7, 2012 12:41:51 AM UTC+5:30, Martin Wawrusch wrote: > > You need to implement something like this in your backend: > https://gist.github.com/1306507 > > > On Wed, Jun 6, 2012 at 12:07 PM, Vikas Hazrati wrote: > >> Hi, >> >> We have a scenario where we need to access our Scalatra based app >> deployed on heroku via local backbone.js application. The use case being >> that backbone development is loosely coupled to the server side through >> JSON interchange. >> >> The problem that we are running into is related to CORS. When we access >> the server from our local backbone app, we get the following error >> >> XMLHttpRequest cannot load http://myapp.herokuapp.com/user/authenticate. >> Origin null is not allowed by Access-Control-Allow-Origin. >> >> Is there a way to specify the header('Access-Control-Allow-Origin: *') >> for our app in heroku? >> >> should we be doing it another way? >> >> Regards | Vikas >> www.knoldus.com >> blog.knoldus.com >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Heroku" group. >> >> To unsubscribe from this group, send email to >> heroku+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en_US?hl=en >> > > > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
Re: How much dynos has been used so far?
The invoices are pretty much the most up to date data available - AFAIK they update around once a day. On Wednesday, 6 June 2012 at 21:24, Linus Pettersson wrote: > Hi! > > Is there a way to see how many dyno hours you have used so far this month on > Heroku? I know it's on the invoice you get, but I want some "live" data. > > I use some "One off processes" (heroku run rake...) quite often and want to > track this somehow. > > Cheers! > Linus > > -- > You received this message because you are subscribed to the Google > Groups "Heroku" group. > > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com > (mailto:heroku+unsubscr...@googlegroups.com) > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en_US?hl=en -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
How much dynos has been used so far?
Hi! Is there a way to see how many dyno hours you have used so far this month on Heroku? I know it's on the invoice you get, but I want some "live" data. I use some "One off processes" (heroku run rake...) quite often and want to track this somehow. Cheers! Linus -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
Re: Accessing server app on Heroku from a local client
You need to implement something like this in your backend: https://gist.github.com/1306507 On Wed, Jun 6, 2012 at 12:07 PM, Vikas Hazrati wrote: > Hi, > > We have a scenario where we need to access our Scalatra based app deployed > on heroku via local backbone.js application. The use case being that > backbone development is loosely coupled to the server side through JSON > interchange. > > The problem that we are running into is related to CORS. When we access > the server from our local backbone app, we get the following error > > XMLHttpRequest cannot load http://myapp.herokuapp.com/user/authenticate. > Origin null is not allowed by Access-Control-Allow-Origin. > > Is there a way to specify the header('Access-Control-Allow-Origin: *') for > our app in heroku? > > should we be doing it another way? > > Regards | Vikas > www.knoldus.com > blog.knoldus.com > > > -- > You received this message because you are subscribed to the Google > Groups "Heroku" group. > > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en_US?hl=en > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
Accessing server app on Heroku from a local client
Hi, We have a scenario where we need to access our Scalatra based app deployed on heroku via local backbone.js application. The use case being that backbone development is loosely coupled to the server side through JSON interchange. The problem that we are running into is related to CORS. When we access the server from our local backbone app, we get the following error XMLHttpRequest cannot load http://myapp.herokuapp.com/user/authenticate. Origin null is not allowed by Access-Control-Allow-Origin. Is there a way to specify the header('Access-Control-Allow-Origin: *') for our app in heroku? should we be doing it another way? Regards | Vikas www.knoldus.com blog.knoldus.com -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
Re: heroku CLI returning an error when running under rvm use 1.9.2 [SOLVED]
On Wednesday, June 6, 2012 9:19:36 AM UTC-7, Tj Sherrill wrote: > > Thanks so much. That resolved the issue. > > > On Wednesday, June 6, 2012 8:04:37 AM UTC-7, geemus wrote: >> >> The bin file will still be available, even after switching versions, but >> the dependencies will not be. If you want this to work, after switching to >> ruby 1.9.2 you should run `gem install heroku` to install the dependencies, >> then everything should work fine. Sorry for the confusion here, since rvm >> segregates gems by ruby version I'm not sure there is a great way around >> this. >> >> On Tuesday, June 5, 2012 11:14:45 PM UTC-5, Tj Sherrill wrote: >>> >>> On the CL when I run a simple "heroku" command it returns: >>> >>> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >>> >>> `require': no such file to load -- heroku-api (LoadError) >>> from >>> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >>> >>> `require' >>> from /Users/tjs/.heroku/client/lib/heroku/auth.rb:5:in `' >>> from >>> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >>> >>> `require' >>> from >>> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >>> >>> `require' >>> from /Users/tjs/.heroku/client/lib/heroku/client.rb:5:in `>> (required)>' >>> from >>> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >>> >>> `require' >>> from >>> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >>> >>> `require' >>> from >>> /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.6.1/lib/heroku.rb:6:in >>> `' >>> from >>> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >>> >>> `require' >>> from >>> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >>> >>> `require' >>> from >>> /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.6.1/bin/heroku:6:in >>> `' >>> from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `load' >>> from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `' >>> >>> If I run the same command before setting rvm to use 1.9.2 then I get the >>> normal help menu. >>> >>> I am running heroku version: 2.26.6 , trying to wrap up the setup on a >>> new app. any ideas? >>> >> -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
Re: heroku CLI returning an error when running under rvm use 1.9.2
Thanks so much. That resolved the issue. On Wednesday, June 6, 2012 8:04:37 AM UTC-7, geemus wrote: > > The bin file will still be available, even after switching versions, but > the dependencies will not be. If you want this to work, after switching to > ruby 1.9.2 you should run `gem install heroku` to install the dependencies, > then everything should work fine. Sorry for the confusion here, since rvm > segregates gems by ruby version I'm not sure there is a great way around > this. > > On Tuesday, June 5, 2012 11:14:45 PM UTC-5, Tj Sherrill wrote: >> >> On the CL when I run a simple "heroku" command it returns: >> >> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >> >> `require': no such file to load -- heroku-api (LoadError) >> from >> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >> >> `require' >> from /Users/tjs/.heroku/client/lib/heroku/auth.rb:5:in `' >> from >> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >> >> `require' >> from >> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >> >> `require' >> from /Users/tjs/.heroku/client/lib/heroku/client.rb:5:in `> (required)>' >> from >> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >> >> `require' >> from >> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >> >> `require' >> from >> /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.6.1/lib/heroku.rb:6:in >> `' >> from >> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >> >> `require' >> from >> /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in >> >> `require' >> from >> /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.6.1/bin/heroku:6:in >> `' >> from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `load' >> from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `' >> >> If I run the same command before setting rvm to use 1.9.2 then I get the >> normal help menu. >> >> I am running heroku version: 2.26.6 , trying to wrap up the setup on a >> new app. any ideas? >> > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
Re: heroku CLI returning an error when running under rvm use 1.9.2
The bin file will still be available, even after switching versions, but the dependencies will not be. If you want this to work, after switching to ruby 1.9.2 you should run `gem install heroku` to install the dependencies, then everything should work fine. Sorry for the confusion here, since rvm segregates gems by ruby version I'm not sure there is a great way around this. On Tuesday, June 5, 2012 11:14:45 PM UTC-5, Tj Sherrill wrote: > > On the CL when I run a simple "heroku" command it returns: > > /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in > > `require': no such file to load -- heroku-api (LoadError) > from > /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in > > `require' > from /Users/tjs/.heroku/client/lib/heroku/auth.rb:5:in `' > from > /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in > > `require' > from > /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in > > `require' > from /Users/tjs/.heroku/client/lib/heroku/client.rb:5:in `' > from > /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in > > `require' > from > /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in > > `require' > from > /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.6.1/lib/heroku.rb:6:in > `' > from > /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in > > `require' > from > /Users/tjs/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in > > `require' > from > /Users/tjs/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.6.1/bin/heroku:6:in > `' > from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `load' > from /Users/tjs/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `' > > If I run the same command before setting rvm to use 1.9.2 then I get the > normal help menu. > > I am running heroku version: 2.26.6 , trying to wrap up the setup on a new > app. any ideas? > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
Heroku Piggyback SSL not working? https is port 80!
Hi, I have an issue with the SSL service - when in php, I echo out the $_SERVER['SERVER_PORT'] variable, the result is always 80, no matter if I am connecting to my page over http or https. Normaly the port should be 443. How can I activate SSL properly? On my local machine using apache, I dont have any problems. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en