Re: Heroku Mongoid config and how it works
no one has a comment on this? I thought it'd be a fairly straight forward answer. On Sep 22, 7:11 pm, Bradley bradleyrobert...@gmail.com wrote: I just used a template for a new rails app that sets up everything for use with Mongoid. The mongoid.yml file looks like this: production: host: %= ENV['MONGOID_HOST'] % port: %= ENV['MONGOID_PORT'] % username: %= ENV['MONGOID_USERNAME'] % password: %= ENV['MONGOID_PASSWORD'] % database: %= ENV['MONGOID_DATABASE'] % I added the MONGOHQ_URL config var to my app (with the string given from mongohq), deployed and it worked! My question is... HOW? I don't get how adding that single URL has all of a sudden given me these 5 environment variables. I searched through the heroku docs on mongo and they pretty sparse. Nowhere does it mention that I might use these particular env vars. So how does this happen? -- 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, Devise and Open Id
That's the thing - I'm not. I'm going to try to make a simple app that uses the federated login with just the open_id and ruby-openid- apps-discovery gems because I really think the problem lies somewhere in Devise. The error Invalid password or email. is the default message given by Warden so it's a bit hard to track down exactly what was the cause but I know it is coming from Devise and may be specific to this setup. On Sep 26, 9:04 pm, Teng Siong Ong siong1...@gmail.com wrote: Like what I have mentioned in the previous post, if you are using OAuth with Federated Login, you might have to register your account and website with google.http://code.google.com/apis/accounts/docs/OpenID.html#settingup On Sun, Sep 26, 2010 at 8:07 AM, sshefer shai.she...@gmail.com wrote: correctly previously (in local development) errors would bubble up, so -- 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 Mongoid config and how it works
It seems MongoMapper is more popular around here. At least it's the solution I'm using and works flawlessly with Heroku. On Mon, Sep 27, 2010 at 2:33 PM, Bradley bradleyrobert...@gmail.com wrote: no one has a comment on this? I thought it'd be a fairly straight forward answer. On Sep 22, 7:11 pm, Bradley bradleyrobert...@gmail.com wrote: I just used a template for a new rails app that sets up everything for use with Mongoid. The mongoid.yml file looks like this: production: host: %= ENV['MONGOID_HOST'] % port: %= ENV['MONGOID_PORT'] % username: %= ENV['MONGOID_USERNAME'] % password: %= ENV['MONGOID_PASSWORD'] % database: %= ENV['MONGOID_DATABASE'] % I added the MONGOHQ_URL config var to my app (with the string given from mongohq), deployed and it worked! My question is...HOW? I don't get how adding that single URL has all of a sudden given me these 5 environment variables. I searched through the heroku docs on mongo and they pretty sparse. Nowhere does it mention that I might use these particular env vars. So how does this happen? -- 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.comheroku%2bunsubscr...@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 Mongoid config and how it works
Heroku might be breaking up the ENV['MONGOHQ_URL'] into those components for you. Try heroku console from your command line and then ENV['MONGOID_HOST'] to see if it's present. On Sep 27, 6:51 am, Abel Tamayo abel.tam...@gmail.com wrote: It seems MongoMapper is more popular around here. At least it's the solution I'm using and works flawlessly with Heroku. On Mon, Sep 27, 2010 at 2:33 PM, Bradley bradleyrobert...@gmail.com wrote: no one has a comment on this? I thought it'd be a fairly straight forward answer. On Sep 22, 7:11 pm, Bradley bradleyrobert...@gmail.com wrote: I just used a template for a new rails app that sets up everything for use with Mongoid. The mongoid.yml file looks like this: production: host: %= ENV['MONGOID_HOST'] % port: %= ENV['MONGOID_PORT'] % username: %= ENV['MONGOID_USERNAME'] % password: %= ENV['MONGOID_PASSWORD'] % database: %= ENV['MONGOID_DATABASE'] % I added the MONGOHQ_URL config var to my app (with the string given from mongohq), deployed and it worked! My question is... HOW? I don't get how adding that single URL has all of a sudden given me these 5 environment variables. I searched through the heroku docs on mongo and they pretty sparse. Nowhere does it mention that I might use these particular env vars. So how does this happen? -- 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.comheroku%2bunsubscr...@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.
auth errors from SendGrid?
Hi. I've been getting some auth errors from SendGrid. Anyone else? Seems to be intermittent. I'm not over quota. John -- 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: auth errors from SendGrid?
Ah. Currently experiencing a database issue that is causing website errors working on resolution. #status http://twitter.com/search?q=%23status http://twitter.com/sendgrid On Mon, Sep 27, 2010 at 1:03 PM, John Norman j...@7fff.com wrote: Hi. I've been getting some auth errors from SendGrid. Anyone else? Seems to be intermittent. I'm not over quota. John -- 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: Programmatically Spinning Workers Up and Down
Hi, I wanted to share my current approach for autoscaling heroku workers, which seems to be working well for me. Here is the gisthttp://gist.github.com/594782, and here is a blog post http://easymple.com/blog/archives/120 describing it in detail. Please note, this approach is different and definitely working better for me than the previous approach that I had shared. This approach is specifically applicable to the scenario where you want high availability for users relying on workers, and still not have to overprovision workers which may be idle. Let me know how this works for you. Thanks Anand On Thu, Jul 29, 2010 at 12:45 AM, Anand Ramanathan rcan...@gmail.comwrote: I havent had the need for multiple dynos, but this link seems to be about scaling dynos, not workers - is that correct? On Sat, Jul 17, 2010 at 10:58 PM, Ben Schwarz ben.schw...@gmail.comwrote: I assume that you haven't seen this recent release from ddollar. http://github.com/ddollar/heroku-autoscale -- 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.comheroku%2bunsubscr...@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.
tinymce not working
I'm trying to get tinymce to work with an app and I'm having no luck. It works fine in my development environment but fails with I push it to Heroku. I believe it is due to the read-only filesystem. Has anyone worked out how to tweak tinymce to work on Heroku or does anyone have a recommendation for a WYSIWYG editor that works with Heroku? TIA, George -- 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: tinymce not working
I got it to work but I'm not sure if I will be able to live with it long term. I used tinymce_hammer plugin. I seems to generate the javascript on the fly so I captured the resulting javascript and saved it in my public/javascripts folder as 'tinymce.js'. Then instead of using %= init_tinymce_hammer_if_required % which includes the javascript only when needed, I included the 'tinymce.js' the traditional way. This means every page will include the tinymce.js file but for now, it works. If anybody has any suggestions to make this better, I'm still interested. Thanks, George On Sep 27, 3:53 pm, geolev geo...@gmail.com wrote: I'm trying to get tinymce to work with an app and I'm having no luck. It works fine in my development environment but fails with I push it to Heroku. I believe it is due to the read-only filesystem. Has anyone worked out how to tweak tinymce to work on Heroku or does anyone have a recommendation for a WYSIWYG editor that works with Heroku? TIA, George -- 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 Mongoid config and how it works
ya you're right, those env vars exist. i wonder why the docs on this are so sparse, and how the author of this template found this out. I haven't been able to locate anything that gives an indication that this is happening. On Sep 27, 11:44 am, Chris Hanks christopher.m.ha...@gmail.com wrote: Heroku might be breaking up the ENV['MONGOHQ_URL'] into those components for you. Try heroku console from your command line and then ENV['MONGOID_HOST'] to see if it's present. On Sep 27, 6:51 am, Abel Tamayo abel.tam...@gmail.com wrote: It seems MongoMapper is more popular around here. At least it's the solution I'm using and works flawlessly with Heroku. On Mon, Sep 27, 2010 at 2:33 PM, Bradley bradleyrobert...@gmail.com wrote: no one has a comment on this? I thought it'd be a fairly straight forward answer. On Sep 22, 7:11 pm, Bradley bradleyrobert...@gmail.com wrote: I just used a template for a new rails app that sets up everything for use with Mongoid. The mongoid.yml file looks like this: production: host: %= ENV['MONGOID_HOST'] % port: %= ENV['MONGOID_PORT'] % username: %= ENV['MONGOID_USERNAME'] % password: %= ENV['MONGOID_PASSWORD'] % database: %= ENV['MONGOID_DATABASE'] % I added the MONGOHQ_URL config var to my app (with the string given from mongohq), deployed and it worked! My question is... HOW? I don't get how adding that single URL has all of a sudden given me these 5 environment variables. I searched through the heroku docs on mongo and they pretty sparse. Nowhere does it mention that I might use these particular env vars. So how does this happen? -- 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.comheroku%2bunsubscr...@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 Mongoid config and how it works
I guess they wanted the MongoHQ addon to just work with Mongoid in addition to MongoMapper. On Sep 27, 4:58 pm, Bradley bradleyrobert...@gmail.com wrote: ya you're right, those env vars exist. i wonder why the docs on this are so sparse, and how the author of this template found this out. I haven't been able to locate anything that gives an indication that this is happening. On Sep 27, 11:44 am, Chris Hanks christopher.m.ha...@gmail.com wrote: Heroku might be breaking up the ENV['MONGOHQ_URL'] into those components for you. Try heroku console from your command line and then ENV['MONGOID_HOST'] to see if it's present. On Sep 27, 6:51 am, Abel Tamayo abel.tam...@gmail.com wrote: It seems MongoMapper is more popular around here. At least it's the solution I'm using and works flawlessly with Heroku. On Mon, Sep 27, 2010 at 2:33 PM, Bradley bradleyrobert...@gmail.com wrote: no one has a comment on this? I thought it'd be a fairly straight forward answer. On Sep 22, 7:11 pm, Bradley bradleyrobert...@gmail.com wrote: I just used a template for a new rails app that sets up everything for use with Mongoid. The mongoid.yml file looks like this: production: host: %= ENV['MONGOID_HOST'] % port: %= ENV['MONGOID_PORT'] % username: %= ENV['MONGOID_USERNAME'] % password: %= ENV['MONGOID_PASSWORD'] % database: %= ENV['MONGOID_DATABASE'] % I added the MONGOHQ_URL config var to my app (with the string given from mongohq), deployed and it worked! My question is... HOW? I don't get how adding that single URL has all of a sudden given me these 5 environment variables. I searched through the heroku docs on mongo and they pretty sparse. Nowhere does it mention that I might use these particular env vars. So how does this happen? -- 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.comheroku%2bunsubscr...@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.
Image upload - manipulation - copy to S3
Hi First of all, I realise Heroku encourages us to upload directly to S3. However I'd like to manage that upload via Heroku first. Two questions: 1) With Heroku I understand your request can have some temporary space for file uploads. Can I rely on that space to exist for a few minutes while a Delayed Job gets to it? 2) Does uploading a file completely lock a dyno? Or can a single dyno handle a few simultaneous uploads? cheers -- 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 Mongoid config and how it works
I'm not sure what's going on, but Heroku doesn't do any magic like that. When you add the mongohq addon, the only url that is set is the MONGOHQ_URL. I just tested it on one of my apps, added mongohq, and there is nothing set for MONGOID_*. Perhaps that's a feature that the mongoid gem itself provides? Oren On Mon, Sep 27, 2010 at 5:43 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: I guess they wanted the MongoHQ addon to just work with Mongoid in addition to MongoMapper. On Sep 27, 4:58 pm, Bradley bradleyrobert...@gmail.com wrote: ya you're right, those env vars exist. i wonder why the docs on this are so sparse, and how the author of this template found this out. I haven't been able to locate anything that gives an indication that this is happening. On Sep 27, 11:44 am, Chris Hanks christopher.m.ha...@gmail.com wrote: Heroku might be breaking up the ENV['MONGOHQ_URL'] into those components for you. Try heroku console from your command line and then ENV['MONGOID_HOST'] to see if it's present. On Sep 27, 6:51 am, Abel Tamayo abel.tam...@gmail.com wrote: It seems MongoMapper is more popular around here. At least it's the solution I'm using and works flawlessly with Heroku. On Mon, Sep 27, 2010 at 2:33 PM, Bradley bradleyrobert...@gmail.com wrote: no one has a comment on this? I thought it'd be a fairly straight forward answer. On Sep 22, 7:11 pm, Bradley bradleyrobert...@gmail.com wrote: I just used a template for a new rails app that sets up everything for use with Mongoid. The mongoid.yml file looks like this: production: host: %= ENV['MONGOID_HOST'] % port: %= ENV['MONGOID_PORT'] % username: %= ENV['MONGOID_USERNAME'] % password: %= ENV['MONGOID_PASSWORD'] % database: %= ENV['MONGOID_DATABASE'] % I added the MONGOHQ_URL config var to my app (with the string given from mongohq), deployed and it worked! My question is... HOW? I don't get how adding that single URL has all of a sudden given me these 5 environment variables. I searched through the heroku docs on mongo and they pretty sparse. Nowhere does it mention that I might use these particular env vars. So how does this happen? -- 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.comheroku%2bunsubscr...@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. -- 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: Image upload - manipulation - copy to S3
1) With Heroku I understand your request can have some temporary space for file uploads. Can I rely on that space to exist for a few minutes while a Delayed Job gets to it? The space is for the request. A delayed job will run as a seperate process, so no, you can't count on it being there. Chances are high that the delayed job will run on a different machine, and not have access to the file. Note that for small files, you can have the dyno upload to s3 as part of the process. Paperclip supports this out of the box. I have sites myself working this way. 2) Does uploading a file completely lock a dyno? Or can a single dyno handle a few simultaneous uploads? A dyno is by definition one simultaneous request. That dyno is locked for the duration of the upload. 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.