Re: Force https?
I ran across rack-secureonly lately but haven't tried it: http://coderack.org/users/spllr/middlewares/108-rack-secureonly Kelly Heikkila On Jul 30, 2010, at 3:52 PM, Phil wrote: Does anyone know how I can force all connections to myapp.heroku.com to run over https instead of http? I think there are ways to configure this manually, but I'm wondering if it's possible with Heroku. I have the ssl connection enabled for my app, but I want to make sure people typing in http://myapp.heroku.com get redirected to https. Thanks, Phil -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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 . -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: MongoHQ + Sinatra
I use something like the following: db = Mongo::Connection.new(ENV['DB_HOST'], ENV['DB_PORT']).db(ENV['DB_DATABASE']) auth = db.authenticate(ENV['DB_USER'], ENV['DB_PASS']) if auth puts "authenticated" else fail "failed authentication" end On Fri, Jul 30, 2010 at 2:56 PM, Ginny Hendry wrote: > My first deployment with MongoHQ and Sinatra (Ruby 1.9.1) gets > "Internal Server Error". I used the suggested connection code like > this: > > include Mongo > def initialize >if settings.environment == :development > @db = Connection.new.db('inp-dev') >else > uri = URI.parse(ENV['MONGOHQ_URL']) > conn = Connection.from_uri(ENV['MONGOHQ_URL']) > @db = conn.db(uri.path.gsub(/^\//, '')) >end > end > > I am new to both MongoHQ and Sinatra so I'm not sure what to do. Can > you tell me if I am using settings correctly to see if I'm running on > Heroku? Or am I missing something in the Mongo connection code? > > Thanks. > > -Ginny > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to her...@googlegroups.com. > 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. > > -- -Shane -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Force https?
Does anyone know how I can force all connections to myapp.heroku.com to run over https instead of http? I think there are ways to configure this manually, but I'm wondering if it's possible with Heroku. I have the ssl connection enabled for my app, but I want to make sure people typing in http://myapp.heroku.com get redirected to https. Thanks, Phil -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: new Bundler version?
On Aug 1, 12:34 pm, Alex wrote: > I know heroku is probably just evaluating the RC, but I'd love to see > it soon as well. > + 1. I deploy frequently whilst my app is being developed to prevent any nasty surprises after a big commit. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: Update Bundler to 1.0.0.rc.1 for use with Rails 3.0.0.rc?
Need to update bundler to 1.0.0.rc.2! On Jul 28, 10:00 pm, Nate W wrote: > I know it's only been a day, but Rails 3.0 RC1 is really a huge > improvement over beta4 and for now I can't upgrade because I get the > error on pushing: > > -> Gemfile detected, running Bundler > No compatible versions could be found for required > dependencies: > Conflict on: "bundler": > * bundler (0.9.26) activated by bundler (= 0.9.26, runtime) > * bundler (>= 1.0.0.rc.1, runtime) required by rails (= > 3.0.0.rc, runtime) > All possible versions of origin requirements conflict. > > Any word on getting 1.0.0.rc.1? Thanks guys. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: new Bundler version?
RC2 support +1 :) -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: NOTICE: Updating Bundler this week
Great, Have been waiting a few days for this. Thanks :) On 1 ago, 20:29, Oren Teich wrote: > On Tuesday August 3rd we will be updating Bundler to 1.0.0RC2. Apps > will continue to run unaffected. Before you push an update, please > double check that your app works correctly with the latest version of Bundler. > > Some things to note: > > * Adding an add-on or a config var will recompile your application. > This can crash your application if you haven't tested it. > Please test against Bundler 1.0.0RC2 before modifying your application. > * Run "bundle check" locally with Bundler 1.0.0RC2 installed > * Are you bundling Bundler? Check your Gemfile to see if you list > Bundler, and have pinned the version. Bundler can't bundle an older > version of itself. > > We will roll the update out mid-day Tuesday August 3rd. > > Oren -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
MongoHQ + Sinatra
My first deployment with MongoHQ and Sinatra (Ruby 1.9.1) gets "Internal Server Error". I used the suggested connection code like this: include Mongo def initialize if settings.environment == :development @db = Connection.new.db('inp-dev') else uri = URI.parse(ENV['MONGOHQ_URL']) conn = Connection.from_uri(ENV['MONGOHQ_URL']) @db = conn.db(uri.path.gsub(/^\//, '')) end end I am new to both MongoHQ and Sinatra so I'm not sure what to do. Can you tell me if I am using settings correctly to see if I'm running on Heroku? Or am I missing something in the Mongo connection code? Thanks. -Ginny -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
opzi q&a for heroku
We're working on a Q&A site called Opzi (running on Heroku) and received a suggestion to actually open up a version for the Heroku dev community for debugging, best practices, etc. It's kinda like Quora, if you've played with that site. Would love for some of you to check it out - ideas, feedback, bugs much, much appreciated. Signup below: https://www.opzi.com/heroku Cheers, Euwyn -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: new Bundler version?
Would be nice to have the rc of bundler for sure. I had to roll back to beta4 because of it. On Jul 28, 7:41 pm, Eric Hurst wrote: > > Will Heroku be upgrading to that version of Bundler? I'm not sure how > > to test our Rails 3 on Heroku otherwise. > > +1 for Bundler RC support. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: Heroku console crashing
Wow, thanks, that sql console looks amazing! How come Heroku doesn't fold this into its official tools? Regarding using db:pull, maintenance, followed by db:push, that technique was extremely troublesome for me in the past, probably because my database is big, around 5 GB. When uploading on db:push, the initial ETA starts low, and then shoots up the longer it runs (mine starts at 8 and then takes around 36 hours total). This combined, with the fact that the db:push process seems to be fragile means anytime I use push my site will be down for a while. Last time I used it, my first attempt to push the database died after about 24 hours with a Taps error (which I reported to support already) where it spuriously complained that there was a duplicate key in the primary keys of a table. My second attempt to push the database died after another day when I briefly lost my Internet connection. The third attempt successfully pushed it up, but I really want to avoid using the push/pull tools on my site again unless necessary. I will definitely check out the console, seems like just the ticket for this sort of thing. On Aug 2, 1:34 pm, Oren Teich wrote: > Also check outhttp://github.com/ddollar/heroku-sql-console > > > > On Mon, Aug 2, 2010 at 9:15 AM, Jonathan wrote: > > Running database transactions through this remote console setup is > > iffy... It might work better to do a db:pull (ideally of just the > > tables you want to change), do the database maintenance locally, and > > then push the updated tables. You can put the site into maintenance > > mode while you do this, if necessary. This technique works reasonably > > well for me. > > > On Aug 1, 6:44 pm, Mike wrote: > >> I'm updating some data in my database, and running them through the > >> Heroku console since we have no direct database access... > > > -- > > You received this message because you are subscribed to the Google Groups > > "Heroku" group. > > To post to this group, send email to her...@googlegroups.com. > > To unsubscribe from this group, send email to > > heroku+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: NOTICE: Updating Bundler this week
Awesome! That's great news. Thanks for putting the effort in to get it out for us. -Corey On Aug 1, 9:29 pm, Oren Teich wrote: > On Tuesday August 3rd we will be updating Bundler to 1.0.0RC2. Apps > will continue to run unaffected. Before you push an update, please > double check that your app works correctly with the latest version of Bundler. > > Some things to note: > > * Adding an add-on or a config var will recompile your application. > This can crash your application if you haven't tested it. > Please test against Bundler 1.0.0RC2 before modifying your application. > * Run "bundle check" locally with Bundler 1.0.0RC2 installed > * Are you bundling Bundler? Check your Gemfile to see if you list > Bundler, and have pinned the version. Bundler can't bundle an older > version of itself. > > We will roll the update out mid-day Tuesday August 3rd. > > Oren -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: Heroku console crashing
Also check out http://github.com/ddollar/heroku-sql-console On Mon, Aug 2, 2010 at 9:15 AM, Jonathan wrote: > Running database transactions through this remote console setup is > iffy... It might work better to do a db:pull (ideally of just the > tables you want to change), do the database maintenance locally, and > then push the updated tables. You can put the site into maintenance > mode while you do this, if necessary. This technique works reasonably > well for me. > > On Aug 1, 6:44 pm, Mike wrote: >> I'm updating some data in my database, and running them through the >> Heroku console since we have no direct database access... > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to her...@googlegroups.com. > 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. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.
Re: Heroku console crashing
Running database transactions through this remote console setup is iffy... It might work better to do a db:pull (ideally of just the tables you want to change), do the database maintenance locally, and then push the updated tables. You can put the site into maintenance mode while you do this, if necessary. This technique works reasonably well for me. On Aug 1, 6:44 pm, Mike wrote: > I'm updating some data in my database, and running them through the > Heroku console since we have no direct database access... -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. 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.