Re: Adding Swagger as Global Executable on Heroku
You can add a node dependency to your project like this https://devcenter.heroku.com/articles/deploying-nodejs. On Fri, May 4, 2018 at 12:48 PM, Peter Dushkin wrote: > HI. > > Just getting up and running on heroku. > > I want to add swagger mocks to my heroku instance, allowing developers to > get mock responses before we work on actual implementation. > > To achieve this, I changed the startup script to: > > "scripts": { > "start": "swagger project start -m", > "test": "odyssey api project test" > } > > and then installed swagger globally: > > $ npm install -g swagger > > which put the swagger executable in: > > $ ~/.heroku/node/bin > > everything seemed OK. > > However, this AM, I checked and the swagger executable is no longer there. > > Now I get: > > 2018-05-04T17:33:13.610021+00:00 app[web.1]: sh: 1: swagger: not found > 2018-05-04T17:33:13.614637+00:00 app[web.1]: npm ERR! file sh > 2018-05-04T17:33:13.614845+00:00 app[web.1]: npm ERR! code ELIFECYCLE > 2018-05-04T17:33:13.615061+00:00 app[web.1]: npm ERR! errno ENOENT > 2018-05-04T17:33:13.615195+00:00 app[web.1]: npm ERR! syscall spawn > 2018-05-04T17:33:13.616219+00:00 app[web.1]: npm ERR! myapi@0.0.1 start: > `swagger project start -m` > 2018-05-04T17:33:13.616307+00:00 app[web.1]: npm ERR! spawn ENOENT > > Odd... can somebody help me understand this? > > > > > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Richard Schneeman https://www.schneems.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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Rails App Unexplainably Not Compatible With Ruby Buildpack
You need to have a `Gemfile` https://github.com/heroku/heroku-buildpack-ruby/blob/master/bin/detect This is in the "activation" section of the ruby support doc https://devcenter.heroku.com/articles/ruby-support#general-support-activation On Fri, Nov 10, 2017 at 12:44 AM, John Wolfe wrote: > I'm trying to push a Rails app to Heroku. The app is used as an API for a > React front-end, but I figured it'd be best to push them separately. > However, when I attempt to push the Rails AP to Heroku, it keeps telling me > app not compatible with buildpack: > > > remote: Building source: > remote: > remote: -> App not compatible with buildpack: > https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/ruby.tgz > remote:More info: > https://devcenter.heroku.com/articles/buildpacks#detection-failure > remote: > remote: ! Push failed > remote: Verifying deploy... > remote: > remote: ! Push rejected to quoriron-rails-api. > remote: > To https://git.heroku.com/quoriron-rails-api.git > ! [remote rejected] master -> master (pre-receive hook declined) > error: failed to push some refs to > 'https://git.heroku.com/quoriron-rails-api.git' > > > Following the Heroku docs, I've tried removing the buildpack and setting the > Heroku/Ruby buildpack, which it does and says, > > > ▸The buildpack heroku/ruby is already set on your app. > > > However, when I try pushing the ap to Heroku with that, it doesn't push and > still gives me the same error from above. I've tried updating my version of > Ruby and re-installing the gemfile, but neither of those worked either. > > Why would a basic Rails app (although it has no views), not be compatible > with the Heroku Ruby buildpack? > > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Heroku + remote database
You can get a fixed IP if you need one with an add on https://elements.heroku.com/addons/fixie. --- Richard Schneeman http://www.schneems.com _ From: Jason Fleetwood-Boldt Sent: Sunday, March 5, 2017 7:27 PM Subject: Re: Heroku + remote database To: The Heroku dynos do not operate at fixed IP addresses, you cannot use and IP-based restriction with Heroku's dynos. Here's Heroku's support document detailing how to make a connection to an Amazon RDS instance: https://devcenter.heroku.com/articles/amazon-rds Since you have provided no details on your database itself, I am unable to assist further. I will tell you that you almost surely will get the best performance if your database operates at the same Amazon zone (us-east-1 or eu-west-1) that the Heroku dynos are running in. I would not recommend attempting to make a network call to a remote database that is not co-located (operates in the same location) as the web dynos. -Jason On Mar 5, 2017, at 2:46 PM, Jiyavudeen Jiya wrote: same pblm for me also ,please give clear solution On Monday, July 30, 2012 at 11:55:05 AM UTC+5:30, Alex Tomás wrote:Hello, I'm trying to connect from Keroku to my database server. How I can do? I know I have to give permission to my server, but at what IP? Thanks -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. Jason Fleetwood-Boldttech@datatravels.comhttp://www.jasonfleetwoodboldt.com/writing If you'd like to reply by encrypted email you can find my public key on jasonfleetwoodboldt.com (more about setting GPG: https://gpgtools.org) -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Why are Gems bundled at RubyGems smaller than ones built from Github?
Rubygems compresses your code into a tar archive. GitHub pulls all the code in source control similar to if you did a manual clone and it doesn't compress. What you're seeing is expected. — Sent from Mailbox On Sun, Feb 8, 2015 at 2:35 PM, Jason Fleetwood-Boldt wrote: > gem 'spree', git: 'https://github.com/spree/spree.git', branch: '2-1-stable' > --> my slug is 262 MB > gem 'spree', '2.1.12' > if I point my Spree app to a gem built with a reference to an open github > repo, when it compiles & builds at 262 MB. When I point it to the packaged > gem at Ruby gems -- basically the same exact set of code with about 4 small > commit difference -- it compiles & builds at 192 MB. > So it appears to me that there is a HUGE overhead in terms of slug size if > you point a gem to build from Github source rather than using a Rubygem's > built version. > Has anyone else seen this effect and can confirm? > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Request Entity Too Large
This would be a better question for heroku support or the heroku discussion forums: https://discussion.heroku.com/ On Tue, Nov 11, 2014 at 1:20 PM, Grigor Yeghiazaryan wrote: > Greetings Heroku community! > > I'm trying to submit a form with a file to a Node+Express server. I set > the bodyParser limit to 5M: > > app.use(express.bodyParser({ limit: '5mb' })); > > It works fine on local machine. However on Heroku I get "Request Entity > Too Large" error for files larger than 1M. > > How does Heroku put this limit and how it can be changed? > > Thanks, > Grigor > > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: SpelEvaluationException for DATABASE_URL
What about database_url wasn't correct? What did you do to fix it?— Richard Schneeman On Wed, Jul 2, 2014 at 6:52 AM, zog wrote: > I got it : the value of DATABASE_URL was not right so getUserInfo was null > Le mercredi 2 juillet 2014 10:11:18 UTC+2, zog a écrit : >> >> Hello, >> i am using spring 3.0.6-RELEASE with an XML configuration : >> >> > >> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >> p:ignoreUnresolvablePlaceholders="true" >> p:ignoreResourceNotFound="true"> >> > value="SYSTEM_PROPERTIES_MODE_OVERRIDE" /> >> >> >> >> classpath:db.properties >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> I have a system variable called DATABASE_URL which is set. WHen i launch >> from eclipse or from a command line i get the folllowing stack trace : >> >> 2014-07-02 10:05:48.276::WARN: Nested in >> org.springframework.beans.factory.BeanCreationException: Error creating >> bean with name 'dataSource' defined >> in class path resource [persistence-config.xml]: Initialization of bean >> failed; nested exception is >> org.springframework.beans.factory.BeanExpressionEx >> ception: Expression parsing failed; nested exception is >> org.springframework.expression.spel.SpelEvaluationException: EL1011E:(pos >> 21): Method call: At >> tempted to call method split(java.lang.String) on null context object: >> org.springframework.expression.spel.SpelEvaluationException: EL1011E:(pos >> 21): Method call: Attempted to call method split(java.lang.String) on null c >> ontext object >> >> Which means that the variable DATABASE_URL is not get by spring. >> >> Has anyone any ideas ? >> Thanks a lot ! >> >> > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Stratergies to stop CDN always hitting Heroku
I would recommend checking out a rack based solution such as https://github.com/kickstarter/rack-attack On Tue, Apr 29, 2014 at 9:19 PM, railsnerd wrote: > > Hi > > If I have a blog url structure, something like > www.blog.com/12343/Hello-World > > I'm happy to cache that page entirely at the CDN > > But concerned that my low-dynamo app might be easily exposed to attackers > by simply making many calls to blog posts that don't exist that always make > a Heroku request because the CDN wont have them cached. > > It would be easy to rapidly request a sequence of fake blog post urls that > hit my little dynamos and also database. > > > > > What are the strategies to deal with this?? > > Can the CDN impose rules? Can Heroku help in any way? > > > cheers > > > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Multiple process types open to web traffic?
If your DB is the bottleneck you can use followers and octopus to allow your app to read from a different db than it writes to https://devcenter.heroku.com/articles/distributing-reads-to-followers-with-octopusthis can help spread the load. On Tue, Mar 25, 2014 at 8:00 PM, Robert Fletcher wrote: > Rack::Attack is an interesting idea. Right now we're deploying a separate > heroku app, but I don't much like that solution both because the database > might be the bottleneck, and it means we have to make sure two separate > apps stay in sync. Ideally we'd be able to deploy to one instance and > handle it all. > > > On Tue, Mar 25, 2014 at 5:56 PM, Dave Perrett wrote: > >> If you can identify the automated traffic somehow by IP/UserAgent/etc, >> you could use https://github.com/kickstarter/rack-attack to throttle it, >> letting regular traffic through unthrottled. It would refuse excess >> automated requests though, which may not be what you want (?). >> >> If you just want a duplicate copy of the app, you should be able to point >> both apps at the same database and run them in parallel, though this won't >> help if the DB is the bottleneck. >> >> dave >> >> >> On 26 March 2014 11:47, Robert Fletcher wrote: >> >>> We have a situation where we have traffic coming in from two sources. >>> One is regular traffic from users, and another is data coming in from >>> automated sources. We're running into a problem where there can >>> occasionally be a flood of traffic from our automated endpoints that >>> effectively DDOS's our servers. The solution we're thinking might be >>> effective would be if we could have our automated endpoints transmit their >>> data to a different url and have that be managed by a separate process on >>> our Heroku instance. Something like `endpoint.ourapp.com`. We're not as >>> concerned about responses being prompt on that side of things, though we >>> want our web side to remain responsive for our users. Is this possible, and >>> if so, how would we go about implementing it? Are there other alternatives >>> that might be more effective? >>> >>> Thanks, >>> - Robert >>> >>> -- >>> -- >>> 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 Community" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to heroku+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> -- >> 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 Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to heroku+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is the server running on host "127.0.0.1"
You should use the backtrace to find the code connecting to the database. If you manually add a database addon and promote it then deploy that is one way to work around the connection issue. We only provision a database for your app _after_ the first deploy. — Richard Schneeman On Wed, Mar 5, 2014 at 6:48 AM, Ed Jones wrote: > Hi, this seems to be a perennial issue that Heroku should just 'fix' by now. > New, very simple app, first time pushing it to Heroku. > Running: rake assets:precompile >> rake aborted! >> could not connect to server: Connection refused >> Is the server running on host "127.0.0.1" and accepting >> TCP/IP connections on port 5432? >> > There seem to be lots of solutions to this, or at least lots of attempts at > solutions. >- The current 'official' solution here >https://devcenter.heroku.com/articles/rails-asset-pipeline#troubleshooting >doesn't even execute. >- The solution that worked in the fall has been deprecated by Heroku: > > http://stackoverflow.com/questions/16124490/heroku-rails-4-could-not-connect-to-server-connection-refused > >| https://devcenter.heroku.com/articles/labs-user-env-compile >- This is RAILS 4, so the oft-cited solution to > set<http://stackoverflow.com/questions/18503073/cant-deploy-to-heroku-because-the-server-refused-the-connection>config >.assets.initialize_on_precompile = > false<http://stackoverflow.com/questions/18503073/cant-deploy-to-heroku-because-the-server-refused-the-connection>no > longer applies? > As I said, new app from Rails composer with one table of content. First > time (for the app, not me) push to Heroku. > Thanks, > Ed > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Heroku does NOT compile files under assets pipelines in Rails 4
It just got merged today! I'm glad you got your app working, also thanks for trying my gem :)— Sent from Mailbox for iPhone On Wed, Jan 8, 2014 at 8:32 PM, roror wrote: > oh missed that. just tried it out and it's working great! may app now has > that gem. i hope it gets into rails master asap! > On Wednesday, January 8, 2014 12:15:46 PM UTC-8, richard schneeman wrote: >> >> It appears you skipped my previous suggestion. If you add in >> https://github.com/schneems/sprockets_better_errors you'll never make >> this mistake again, it checks for this problem in development so you don't >> deploy broken code to production. Parts of it have already been merged into >> Rails master. >> >> Not only will it find the error, it also tells you how to fix it. >> >> >> On Wed, Jan 8, 2014 at 1:56 PM, roror >wrote: >> >>> i'll remove that change then to make things as clear as possible. thanks >>> again! >>> >>> >>> On Wednesday, January 8, 2014 11:53:39 AM UTC-8, John Beynon wrote: >>> >>>> excellent - although rails_12factor is setting >>>> config.serve_static_assets = true for you already. >>>> >>>> https://github.com/heroku/rails_serve_static_assets/ >>>> blob/master/lib/rails_serve_static_assets/railtie.rb#L4 >>>> >>>> >>>> On Wed, Jan 8, 2014 at 5:44 PM, roror wrote: >>>> >>>>> That was absolutely it, Keenan. Thank you! In >>>>> config/environments/production.rb, >>>>> I've now changed the boolean to true for: >>>>> config.serve_static_assets = true >>>>> >>>>> and added a regex I found online to include ALL css and js files >>>>> config.assets.precompile += %w( *.css *.js ) >>>>> >>>>> I lost my workflow now though. It's much more difficult to prototype >>>>> without deploying to heroku. >>>>> >>>>> >>>>> On Wednesday, January 8, 2014 1:40:45 AM UTC-8, Keenan wrote: >>>>> >>>>>> Hi john >>>>>> >>>>>> Make sure your CSS file is included in your config/environments/ >>>>>> production.rb >>>>>> >>>>>> Look for a commented out section mentioning application stylesheets >>>>>> and java scripts. maybe precompile asset pipeline? >>>>>> >>>>>> It bites people all the time and there are currently discussions on >>>>>> how to fix in rails. Ruby5 mentioned a gem recently. >>>>>> >>>>>> Best of luck >>>>>> >>>>>> Ping me if you can't find and I'll track down when I get to a computer. >>>>>> >>>>>> Best of luck >>>>>> Keenan >>>>>> >>>>>> >>>>>> On Tue, Jan 7, 2014 at 9:02 PM, roror wrote: >>>>>> >>>>>>> I've been reading stackoverflow for more than 4 hours now. I can >>>>>>> only get application.js to compile on heroku. This is a very simple, >>>>>>> static webapp I'm working on. My *.css.scss files only have one >>>>>>> obvious >>>>>>> field to isolate out compile-time failures. >>>>>>> >>>>>>> In my Gemfile and Gemfile.lock I have: >>>>>>> group :production do >>>>>>> gem 'rails_12factor' >>>>>>> end >>>>>>> >>>>>>> In app/views/layouts/mycontroller.html.erb: >>>>>>> I'm using >>>>>>> >>>>>>><%= stylesheet_link_tag "path/to/my.css" %> >>>>>>> ... >>>>>>> >>>>>>> >>>>>>> Everything works fine on my localhost, but I cannot get my css on >>>>>>> heroku. >>>>>>> >>>>>>> http://stackoverflow.com/questions/15354539/heroku-does-not- >>>>>>> compile-files-under-assets-piplines-in-rails-4 >>>>>>> http://stackoverflow.com/questions/20984600/cant-find-css- >>>>>>> after-pushing-to-heroku >>>>>>> http://guides.rubyonrails.org/asset_pipeline.html#coding-lin >>>>>>> ks-to-assets >>>>>>> >>>>>
Re: Heroku does NOT compile files under assets pipelines in Rails 4
It appears you skipped my previous suggestion. If you add in https://github.com/schneems/sprockets_better_errors you'll never make this mistake again, it checks for this problem in development so you don't deploy broken code to production. Parts of it have already been merged into Rails master. Not only will it find the error, it also tells you how to fix it. On Wed, Jan 8, 2014 at 1:56 PM, roror wrote: > i'll remove that change then to make things as clear as possible. thanks > again! > > > On Wednesday, January 8, 2014 11:53:39 AM UTC-8, John Beynon wrote: > >> excellent - although rails_12factor is setting config.serve_static_assets >> = true for you already. >> >> https://github.com/heroku/rails_serve_static_assets/ >> blob/master/lib/rails_serve_static_assets/railtie.rb#L4 >> >> >> On Wed, Jan 8, 2014 at 5:44 PM, roror wrote: >> >>> That was absolutely it, Keenan. Thank you! In >>> config/environments/production.rb, >>> I've now changed the boolean to true for: >>> config.serve_static_assets = true >>> >>> and added a regex I found online to include ALL css and js files >>> config.assets.precompile += %w( *.css *.js ) >>> >>> I lost my workflow now though. It's much more difficult to prototype >>> without deploying to heroku. >>> >>> >>> On Wednesday, January 8, 2014 1:40:45 AM UTC-8, Keenan wrote: >>> Hi john Make sure your CSS file is included in your config/environments/ production.rb Look for a commented out section mentioning application stylesheets and java scripts. maybe precompile asset pipeline? It bites people all the time and there are currently discussions on how to fix in rails. Ruby5 mentioned a gem recently. Best of luck Ping me if you can't find and I'll track down when I get to a computer. Best of luck Keenan On Tue, Jan 7, 2014 at 9:02 PM, roror wrote: > I've been reading stackoverflow for more than 4 hours now. I can > only get application.js to compile on heroku. This is a very simple, > static webapp I'm working on. My *.css.scss files only have one obvious > field to isolate out compile-time failures. > > In my Gemfile and Gemfile.lock I have: > group :production do > gem 'rails_12factor' > end > > In app/views/layouts/mycontroller.html.erb: > I'm using > ><%= stylesheet_link_tag "path/to/my.css" %> > ... > > > Everything works fine on my localhost, but I cannot get my css on > heroku. > > http://stackoverflow.com/questions/15354539/heroku-does-not- > compile-files-under-assets-piplines-in-rails-4 > http://stackoverflow.com/questions/20984600/cant-find-css- > after-pushing-to-heroku > http://guides.rubyonrails.org/asset_pipeline.html#coding-lin > ks-to-assets > > > -- > -- > You received this message because you are subscribed to the Google > Groups "Heroku" group. > > To unsubscribe from this group, send email to > heroku+un...@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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to heroku+un...@googlegroups.com. > > For more options, visit https://groups.google.com/groups/opt_out. > -- >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Heroku" group. >>> >>> To unsubscribe from this group, send email to >>> heroku+un...@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 Community" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to heroku+un...@googlegroups.com. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> >> >> -- >> >> John >> http://about.me/johnbeynon/bio >> > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to heroku+unsubscr...@google
Re: Heroku does NOT compile files under assets pipelines in Rails 4
Install this https://github.com/schneems/sprockets_better_errors and run your dev environment. It will show you how you need to configure your app.— Sent from Mailbox for iPhone On Tue, Jan 7, 2014 at 8:02 PM, roror wrote: > I've been reading stackoverflow for more than 4 hours now. I can only get > application.js to compile on heroku. This is a very simple, static webapp > I'm working on. My *.css.scss files only have one obvious field to isolate > out compile-time failures. > In my Gemfile and Gemfile.lock I have: > group :production do > gem 'rails_12factor' > end > In app/views/layouts/mycontroller.html.erb: > I'm using > > <%= stylesheet_link_tag "path/to/my.css" %> > ... > > Everything works fine on my localhost, but I cannot get my css on heroku. > http://stackoverflow.com/questions/15354539/heroku-does-not-compile-files-under-assets-piplines-in-rails-4 > http://stackoverflow.com/questions/20984600/cant-find-css-after-pushing-to-heroku > http://guides.rubyonrails.org/asset_pipeline.html#coding-links-to-assets > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Assets precompile issue on heroku
Narrow down the line causing the failure by deleting a line, and pushing. Repeat until you find the line that when you remove it does not cause the failure. It's slow and painful, but it's the only good way to troubleshoot this problem. On Sun, Nov 17, 2013 at 8:49 PM, Kevin Patel wrote: > I'm having the same issue. Its strange everything was working fine just > this morning and asset compile works fine locally (no db calls). > > > On Friday, October 18, 2013 2:04:21 PM UTC-4, iamtheschmitzer wrote: >> >> I can prcompile locally, but on heroku, task is complaining about >> processing coffeescript, but I don't use it. >> >> I've written up the issue on >> >> http://stackoverflow.com/questions/19449363/heroku- >> coffee-rails-failure-in-asset-precompile >> >> but no answers yet. >> >> Appreciate if someone could help. >> >> Jeff >> > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Letting the pager solve R14 Errors
In general threads consume more CPU while processes consume more RAM. Reducing the number of threads may not have any considerable impact on your overall memory usage. You could try a memory profiling tool to identify memory leaks in your application or maybe there is a way to restart your sidekiq master process when it begins to consume too much memory. — Sent from Mailbox for iPhone On Mon, Nov 11, 2013 at 11:10 AM, Neil Middleton wrote: > Yeah, so R14 is more of a warning than an error - your app is still running, > but much slower than normal. > I would suggest looking at what you’re loading into memory during a worker > run - I would guess that you’re loading your *entire* app and all it’s > dependencies in order to do something that I would guess is pretty simple. > - N > On 11 November 2013 at 16:06:32, Jack Royal-Gordon (jac...@pobox.com) wrote: > I have background processes running Sidekiq that run for several hours each > night. They generate a large number of R14 errors (1600 for 2 processes each > running about 6-9 hours). But it seems like the excessive memory is slight > (not more than 520MB vs the 512MB allocated), so it would not be justified to > use jumbo (1024MB) processes. > Threads require pre-loading of the runtime environment, which includes the > Rails library. If there are parts of the library that I'm not using (and > there are), I ought to be able to fine-tune the pre-load process to exclude > them, eventually achieving a point where memory usage comes within 512MB. > Determining which parts are used and which aren't can be a tedious > experience. Can I not just rely on the paging to eventually page out the > parts I'm not using, at which point no more paging will take place because > the out-of-memory pages are never requested? > I tried lowering the number of concurrent jobs per process (i.e. threads) > from 10 to 8, but it seemed like it only made up 4-5MB in excess memory and > did not affect the number of R14 errors. In order to make up for the lost > concurrency, I added another process. The overall effect was to slow > everything down (an additional 2-1/2 hours of processing to get through the > workload), so I concluded that the extra concurrency (3x8=24 vs 2x10 = 20) > put extra load on the Postgre database which became a processing bottleneck. > So my gut feeling is that changing the jobs-per-process count is not the best > way to lower memory usage. > Any other thoughts on how to solve this (or whether it really needs to be > solved) would be appreciated. > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Is Websockets support coming?
I'm just going to leave this...right...here: https://blog.heroku.com/archives/2013/10/8/websockets-public-beta -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: dynamic content with cloudfront and rails?
With a pull based CDN (like cloudfront/cdn_sumo) only the very first request from must go to the "origin" to grab the asset. After that, all requests will be served from the closest geographical CDN location. Are you trying to optimize that first cache-miss request? It looks like you could set up your DNS to use Amazon's Route 53 and then set up GEO DNS configuration http://www.cyberciti.biz/cloud-computing/aws/route-53-geodns-tutorial/ as one option. I've not done this though, and would be interested if anyone else has set up a GEO based DNS configuration. Would be cool to do this with a Heroku US and EU region. -- Richard Schneeman On Mon, Sep 23, 2013 at 9:29 AM, Mike Atlas wrote: > Hi guys > > We're currently using SumoCDN (which leverages Amazon Cloudfront) to serve > up our static assets successfully. > > However, I'm now curious about serving up our dynamic GET requests as well > through Cloudfront, since our users may be geographically dispersed and > possibly quite far from the east coast server our Rails application > ("origin") is living on currently. > > Does anyone have experience setting up rails to leverage dynamic request > CDNs on rails (heroku) or a blog post? I couldn't find much out there > beyond people discussing how to use the static content caching feature. > > Thanks > Mike > > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: How can I use Unicorn with PHP?
That is a Ruby specific answer. I would recommend posting this Facebook question to a new stack overflow query, and tagging it with PHP. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, April 1, 2013 at 4:13 PM, Shahruk Khan wrote: > I am trying to apply this fix: > http://stackoverflow.com/questions/7975498/submitting-object-to-facebook-via-open-graph-doesnt-work-but-then-works-after > > It asks me to use Unicorn, but how exactly would I do that when running a PHP > application? > > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com > (mailto:heroku+unsubscr...@googlegroups.com). > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Gem for serving Rail's assets on Cedar
I saw this on HN this morning. I haven't seen the diff between this and Rails master, but is there any reason we wouldn't want this in Rails 4 by default? -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Wednesday, February 27, 2013 at 4:46 PM, jonathan wrote: > Hi all, > > I've packaged up a new gem for serving the .gz files that are created by the > Rail's asset precompiler. > > https://github.com/jbaudanza/action_dispatch-gz_static > > Usually these gzipped files are served by something like nginx. Since nginx > isn't available on Cedar, you can use this gem instead. > > Hope this helps. Let me know if you have any feedback. > > -- > -- > 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 Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to heroku+unsubscr...@googlegroups.com > (mailto:heroku+unsubscr...@googlegroups.com). > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Speed up your App with CDN Sumo (beta add-on)
Mike, We don't have pricing up yet, plans will start out at $5 a month which will be good for a site with nominal traffic somewhere around 5k unique visitors a month. This of course depends on number and size of assets served. After that the price per request will drop at each tier, the more you use the cheaper your per request transaction is. If you go over your limit for the month, your site will still work, it just won't be as fast. George, DreamObjects is a product somewhat like Amazon's S3. You're storing a single file at a single location. If someone from china downloads the file it will take someone significantly longer than someone who is next to the data center where dreamhost has it stored. If you wanted to speed that up, you would need to make the DreamObject file available from your domain so `smile.png` could be served from `example.com/dreamobjects/smile.png` (and make that controller redirect to the proper dream object path). After you do that, you can put a CDN in front of your app. So when a visitor comes to your webpage, their browser sees a url like `http://jby73hjv7.cdnsumo.com/dreamobjects/smile.png` and the file is served from the closest CDN server to the visitor. If you're doing this though, make sure that if the file changes that it's filename changes. There is more info in the docs about this, or you can email he...@cdnsumo.com for direct questions. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Thursday, February 7, 2013 at 1:56 PM, yllumin...@gmail.com wrote: > I have to say, I too am really interested in understanding it further as > lately we've been really happy with DreamHost's DreamObjects service > (http://dreamhost.com/cloud/dreamobjects/r.cgi?232913) at their price points > and performance. > > > Thanks for sharing. > > -George > > > > On Feb 6, 2013, at 5:07 PM, m...@bolser.co.uk (mailto:m...@bolser.co.uk) > mailto:bolser.co...@gtempaccount.com)> > wrote: > > Hi Richard > > > > Does your service have its own standalone web site? > > > > I (and I suspect other developers) would like to know more about your > > infrastructure, experience and pricing in order to compare your service to > > the likes of Cloudflare and Cloudfront. > > > > Regards > > > > Mike > > On Wednesday, February 6, 2013 5:31:40 PM UTC, richard schneeman wrote: > > > CDN Sumo (https://addons.heroku.com/cdn_sumo) provides edge cache CDNs to > > > speed up your app. We're in beta and looking for more feedback on the > > > provisioning and integration experience. > > > > > > If you're running Rails 3 > > > (https://devcenter.heroku.com/articles/cdn_sumo), or Rails2 > > > (https://github.com/sumodocs/cdn_sumo_sprockets_rails2) and you want > > > better performance for your users please try out the add-on and let us > > > know what you think he...@cdnsumo.com (javascript:). > > > > > > If you're running other languages or frameworks and interested in getting > > > CDN support, we want to work with you to generate integration docs. > > > > > > We're still in beta, so all usage is free. Go faster by trying CDN Sumo > > > today: > > > > > > $ heroku addons:add cdn_sumo:test > > > > > > Thanks for your feedback. > > > > > > Richard > > > > -- > > -- > > 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 Community" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to heroku+unsubscr...@googlegroups.com > > (mailto:heroku+unsubscr...@googlegroups.com). > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > -- > 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 y
Re: 12 factor application testing
dotenv gem supports .env.test, .env.development, and .env.production https://github.com/bkeepers/dotenv -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Wednesday, February 6, 2013 at 1:23 PM, Pedro Belo wrote: > This is a great question! > > I think ideally you should use different files for different environments: > .env/.env.test, for instance. Foreman can use a different env file with -e. > > In practice I had some trouble applying that to a Rails 2.3 app, though. In > particular because of the test database manipulation, Rails really needed > both database urls - so we ended up with a single .env containing both > DATABASE_URL and TEST_DATABASE_URL. > > > On Wed, Feb 6, 2013 at 4:39 AM, vincent daubry (mailto:vdau...@gmail.com)> wrote: > > We manage a production and staging environment without any problem on > > Heroku, we followed these instructions : > > > > https://devcenter.heroku.com/articles/multiple-environments > > > > I dont think the problem you have with the test environnement is related to > > heroku ? > > > > Anyway, you probably don't want to hit RabbitMQ in your unit tests, to > > avoid that we use a facade class with Rails.env.test? in the ruby code. All > > the environment variables related to external services are filled with > > dummy values in the test.rb config file. > > > > For example we would have : > > RABITMQ_URL = "fake_url" > > > > If our test suite fails because of a failed connection to RabbitMQ it means > > one of our test is not properly stubbed (which is a good piece of > > information !) > > > > If anyone have a better solution, i would be happy to hear it. > > > > Hope this helps, > > Vincent > > > > > > Le mardi 5 février 2013 18:30:53 UTC+1, Keenan a écrit : > > > Hi All, > > > > > > I have all my configuration values in environment variables. > > > > > > But this seems to break down for running tests. > > > We only have 1 .env file that we source from .rvmrc. > > > So the same environment variables are used for both development and test > > > (rails console and rake spec) > > > > > > > > > The solution for handling the 2 environments with one set of variables is > > > currently to hack ENV['DATABASE_NAME'] in spec_helper and use code like > > > this all over the place: > > > ENV['RABITMQ_URL'] + ENV['DATABASE_NAME'] > > > Or to hardcore the test environment values in the yml files. and add > > > Rails.env.test? int he ruby code. > > > > > > As you'd imagine, this is starting to break down. > > > > > > > > > I assume the solution is to have 2 different environments, but I'm not > > > sure how to do this. > > > Where would I load in the second environment file so I don't by mistake > > > run rails console in the test environment or vice versa and blow away my > > > environment. > > > > > > > > > > > > How are other people handling the 2 different environments? > > > > > > > > > Thanks for any insight, > > > Keenan > > > > > > > > > > > > > > > > > > > > > -- > > -- > > 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%2bunsubscr...@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 Community" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to heroku+unsubscr...@googlegroups.com > > (mailto:heroku%2bunsubscr...@googlegroups.com). > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > -- > 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
Speed up your App with CDN Sumo (beta add-on)
CDN Sumo (https://addons.heroku.com/cdn_sumo) provides edge cache CDNs to speed up your app. We're in beta and looking for more feedback on the provisioning and integration experience. If you're running Rails 3 (https://devcenter.heroku.com/articles/cdn_sumo), or Rails2 (https://github.com/sumodocs/cdn_sumo_sprockets_rails2) and you want better performance for your users please try out the add-on and let us know what you think he...@cdnsumo.com. If you're running other languages or frameworks and interested in getting CDN support, we want to work with you to generate integration docs. We're still in beta, so all usage is free. Go faster by trying CDN Sumo today: $ heroku addons:add cdn_sumo:test Thanks for your feedback. Richard -- -- 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 Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to heroku+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: remove my first app message from post to wall box
John, you'll need to use the linter from Facebook (http://developers.facebook.com/tools/debug), Facebook does cache these things. These questions might be better served on stack overflow where you could tag your question as Facebook. Facebook employees do not monitor this group, and Heroku employees who do so only do it on their free time. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, May 7, 2012 at 4:54 PM, John Callaghan wrote: > I'm having the same problem, the copy should come from the > og:description in the index.php but I think it is beging cached > somewhere...a > > On Apr 20, 1:21 am, menik http://gmail.com)> wrote: > > Thanks. > > Just trying to get a understanding at the moment. Hoping to create > > some kind of audio visual application. > > Here's a screen shot of what i > > meanhttp://img2.pixhost.org/images/3589/11971165_screen-shot-2012-04-20-a... > > so the source code i get from that when looking at the source in > > chrome. > > > > > ft="{"tn":"M"}">My first app > div> > class="live_125229047609526_131325686911214 commentable_item > > autoexpand_mode" method="post" action="/ajax/ufi/modify.php" data- > > live="{"seq":0}" onsubmit="return > > Event.__inlineSubmit(this,event)" id="uhj5sb_65"> > name="charset_test" value="€,´,€,´,水,Д,Є" /> > type="hidden" name="fb_dtsg" value="AQCPklZY" autocomplete="off" / > > > > > > > > Im confused as to how to modify it? > > > > ive searched although the source i have pulled down in terminal and > > already modifed but find no reference to the "my first app" > > quote .been modifying but cant find anywhere. > > > > could you explain in more detail? > > > > thanks > > On Apr 19, 11:46 pm, Richard Schneeman > (http://gmail.com)> > > wrote: > > > > > > > > > > > > > > > > > You can remove it manually from your Facebook Feed. You will need to > > > clone the code locally to your hard drive. From there you can change the > > > contents of the wall post, and re-deploy. > > > > > I'm actually working on a getting started with Facebook and Heroku > > > screencast. Is there something specifically you're interested in doing > > > with a Facebook App? > > > > > -- > > > Richard Schneeman > > > Heroku.com (http://Heroku.com) > > > > > > > > > > On Thursday, April 19, 2012 at 1:06 PM, menik wrote: > > > > I have set up a app with heroku but when i use the post to wall from > > > > within the application is shows up with the app name then underneath > > > > "my first app" how do i remove this? > > > > > > > > > > > > > > > > > > -- > > > > 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 > (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
Re: Limit request (body) size
You get the request object in rack, so you could write your own Rack middleware to do whatever you like with a larger than average body. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Sunday, November 11, 2012 at 7:29 PM, Jonathan Baudanza wrote: > I don't know of any way to configure the heroku stack to do this. > > What problem are you trying to solve? If you're worried about slow clients, > using a webserver like thin should be sufficient. > > On Fri, Nov 9, 2012 at 11:54 PM, Fabiano PS (mailto:fabianosori...@gmail.com)> wrote: > > Hi, > > > > Is there a way for me to configure Heroku to limit the maximum size/length > > that an user may submit to my site hosted at heroku? Apache and Ngix > > support it, and setting this limit would be very important to protect my > > website stability. > > > > Thanks > > > > -- > > 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%2bunsubscr...@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 > (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
Re: How do you track your 503s?
You can log custom data to NewRelic (or you used to be able to anyway) we used this controller method at Gowalla: def send_to_rpm(e) rack_env = ENV.to_hash.merge(request.env) rack_env.delete('rack.session.options') opts = { :request_params => params, :custom_params => { :session => session, :rack => rack_env } } NewRelic::Agent.notice_error(e, opts) end -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Tuesday, November 13, 2012 at 12:42 AM, Neil Middleton wrote: > No, AFAIK you can't push stuff into NewRelic (unless their API let's you do > that). > > Essentially Heroku lets you drain your logs into something like Papertrail or > Loggly. These logs will include your 503's. > From here you can then setup alerts and suchlike depending on the service > you're using and do what you will with them. For instance, you could > probably push these out to a small app that pushes them onto the NR API (if > it let's you). > > Saying this, this isn't something I've tried - I'm not sure of the benefit of > getting this data into NR, quite often the logging services will let you > visualise the data somehow. > > -- > Neil > > > On Monday, 12 November 2012 at 22:38, Daniel Doubrovkine wrote: > > > Neil, thank you. > > > > Can you elaborate on this? Are you saying I can pull data I have in > > papertrail right now into New Relic? > > > > On Mon, Nov 12, 2012 at 4:55 PM, Neil Middleton > (mailto:n...@neilmiddleton.com)> wrote: > > > If you're using an add-on such as Papertrail you can pretty much track > > > what you want via your own searches and alerts. > > > > > > I'm not sure of any way of doing it with NewRelic. > > > > > > N > > > > > > -- > > > Neil > > > > > > > > > On Monday, 12 November 2012 at 21:53, Jonathan Baudanza wrote: > > > > > > > I don't know of a way to track 503s, but the "Request Queuing" > > > > measurement in New Relic is helpful. This will tell you if all of your > > > > available dynos are being consumed. This may not be related to 503s, > > > > but it often is. > > > > > > > > On Mon, Nov 12, 2012 at 12:36 PM, Daniel Doubrovkine > > > (mailto:dbl...@dblock.org)> wrote: > > > > > We occasionally get 503s, caused by all kinds of things - a dyno will > > > > > be sitting in a lock, a database went MIA, Heroku is having trouble, > > > > > etc. > > > > > > > > > > How do you track 503s? I'd like to keep their counts, graph, etc. > > > > > Ideally I'd like to get them in New Relic, but these are errors that > > > > > happen outside of our dynos. > > > > > > > > > > Thanks, > > > > > dB. > > > > > > > > > > -- > > > > > dB. | Moscow - Geneva - Seattle - New York > > > > > dblock.org (http://www.dblock.org) - @dblockdotorg > > > > > (http://twitter.com/#!/dblockdotorg) > > > > > -- > > > > > 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%2bunsubscr...@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 > > > > (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 > > > (mailto:heroku%2bunsubscr...@googlegroups.com) > > > For more options, visit this group at &
Re: How do you manage your production secrets (API key's etc.) without using source control?
This is a hard problem we've been trying to answer for a few years here is our best response: http://www.12factor.net/config Here are my personal feelings on it: https://speakerdeck.com/schneems/millions-of-apps-deployed-presented-at-lsrc?slide=40 Secrets in source control aren't secret, could you open source your app right now if you wanted to? Config vars are our best answer to date. They also allow you to change settings without re-deploying. Saves you time and allows you to use our "releases" feature more effectively. A better question might be, why do you _need_ to keep your secrets all in one place? -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, October 29, 2012 at 12:54 PM, Alex Heaton wrote: > Like the title says, what approaches do you use for keeping private things > out of Git? > > I'm currently considering Foreman and development/production.env files. I can > check the former into git, keep the latter private. I'd rather not simply > update the heroku config vars manually, I need to keep the secrets all in one > place. > > -- > 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
Re: Upgrade Postgres plan & cant access old database
Did you get this to work? Not sure by that last post. Have you tried opening a ticket on heroku.com ? -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Sunday, October 21, 2012 at 12:38 PM, Oded Elharar wrote: > https://devcenter.heroku.com/articles/postgres-log-messages > See the last topic. > > On Monday, August 27, 2012 3:37:57 PM UTC+3, Oren Systems wrote: > > Hi fellows. I im really needing your help. > > > > I have an Rails app up on Heroku for about a month. I had a free postgres > > database, yesterday i bought a basic postgres plan. > > Now i have the new db at HEROKU_POSTGRES_RED and the old one at DATABASE. > > We are trying to migrate data from DATABASE to HEROKU_POSTGRES_RED. > > > > but somehow i cant access DATABASE. > > Here is what im trying: > > $ heroku pg:info DATABASE we have the error "resource not found " > > $ heroku pgbackups:capture DATABASE we have the error "An error occurred > > and your backup did not finish" > > $ heroku pg:psql DATABASE we have the error "psql: FATAL: role > > "pzwjfbnwtromrh" is not permitted to log in" > > > > As can u see, my postgres role have no access to database! > > can someone help me out? i rly need to migrate data from de old database. > > How can access? > > > > ive tryed to reset my DATABASE credentials with command: > > $ heroku pg:credentials --reset gut got "resource not found " error again! > > > > thanks guys. > > -- > 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
Re: Connecting to D.B from localhost application
Yep $ heroku config | grep DATABASE_URL Though if you're using a non "production" database (one of the free ones) this url may change (though it's not likely). If you get connection errors just run the command above and see if it's changed. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Sunday, October 21, 2012 at 3:09 AM, Yaron Vazana wrote: > Does your D.B supports connections from localhost? I need to connect to my > D.B while i am developing instead of creating a local D.B > Thanks > > -- > 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
Re: About Heroku Hosting Service
I'll add that free dyno are put to sleep to save resources and to allow us to offer that functionality. Paid dynos are not. A dyno represents 512 mb or Ram. Increasing dynos increases the load your site can handle. Because of this scalability the disks are "ephemeral" you can write and read to them but they are cleared when the machine restarts. If you need to store something like images use S3. If you need to store session data use a database, memcache, and/or signed cookies. -- Richard Schneeman http://heroku.com @schneems Sent from the road On Sunday, October 7, 2012 at 11:53 AM, m...@bolser.co.uk wrote: > Here goes... > > So what does Heroku actually do? It's a cloud application platform. > Does it host websites too? Yes - you can use Ruby, Java, Python, Clojure, > Scala and Node.js. > How do the plans and pricing work? These are explained at > http://www.heroku.com/pricing > What are these web dynos and worker dynos? Web dynos run threads for web > browser clients. Works run background or non-client threads. > What are production databases? Production databases offer more uptime. > What all can I run on Heroku? I don't understand the question. > How good is the free plan for development and testing purpose? They're just > fine, unless you need a worker; then you'll have to pay. > How do I know which is the suitable plan for me? Start with the cheapest and > scale up if it's too slow for you users. > > My advice though would be to just crack on and try it! > > Hope that helps! > > > On Saturday, October 6, 2012 7:45:25 AM UTC+1, Ankur Sinha wrote: > > Hello everyone, > > > > I am new to this cloud application hosting stuff. And lately I have been > > hearing a lot about Heroku. So I wanted to know few stuffs about it because > > I googled a lot but couldn't find convincing answers. > > > > So what does Heroku actually do? Does it host websites too? > > > > How do the plans and pricing work? What are these web dynos and worker > > dynos? What are production databases? What all can I run on Heroku? > > > > How good is the free plan for development and testing purpose? How do I > > know which is the suitable plan for me? > > > > After some of these basic questions are answered, I would like to query > > more considering I have some basic knowledge about Heroku. > > > > Thank you. > -- > 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: Background Jobs For Mission Critical Info
The maintainer of Resque (Terence Lee (http://twitter.com/hone02)) works for Heroku. Failed Resque jobs can be retried via the built in web interface. I've never had a bad experience with Delayed Job, but if you are using it heavily it can impact your database performance. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Wednesday, September 26, 2012 at 9:21 PM, Carson Gross wrote: > Hi, > > I've got a bit of processing that is not time critical but that is mission > critical, and I'm considering running as a Delayed Job in order to minimize > request times. My experience with Delayed Jobs on bamboo was that there were > times when the queue just hung, and I had to delete the jobs to get things > running again. I won't be able to just drop these jobs on the floor like I > could on our bamboo app, so I was wondering if anyone can comment on the > reliability of DJ's on the cedar stack, if they've had problems w/ things > hanging, etc. > > Thanks for any comments or opinions, > Carson > > -- > 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
Re: problem on git clone Permission denied (publickey).
Are you logged in as the owner of the app? If you run $ heroku apps does zbuloo show up? -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Thursday, August 30, 2012 at 10:43 AM, Ai Romantiku wrote: > when i want to clone my appp on pc give me this error. :( > > Romantiku@ROMANTIKU-PC ~ > $ git clone g...@heroku.com (mailto:g...@heroku.com):zbuloo.git > Cloning into 'zbuloo'... > The authenticity of host 'heroku.com (http://heroku.com) (50.19.85.154)' > can't be established. > RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad. > Are you sure you want to continue connecting (yes/no)? yes > Warning: Permanently added 'heroku.com (http://heroku.com),50.19.85.154' > (RSA) to the list of known > hosts. > Permission denied (publickey). > fatal: The remote end hung up unexpectedly > > > -- > 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
Re: Can I open another PORT other than the provided $PORT ?
Heroku will give you the port that it is bound to in the $PORT environment variable. Most Heroku applications use this variable in their Procfile to tell their app what port to bind to, for ruby using the unicorn server it would look like this: web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Saturday, August 18, 2012 at 9:02 PM, Daniel Qian wrote: > Hi all, > > I'm trying to use jbossjta on app. Everything is fine on my local machine, > but things go wrong after I deployed to Heroku. > > Here is the error log: > > > irrelvant logs > > 2012-08-19T00:24:41+00:00 app[web.1 (http://web.1)]: INFO [main] > > (TransactionStatusManager.java:87) > > com.arjuna.ats.arjuna.recovery.TransactionStatusManager.addService(TransactionStatusManager.java:87) > > - ARJUNA12163: Starting service > > com.arjuna.ats.arjuna.recovery.ActionStatusService on port 52173 > > 2012-08-19T00:24:41+00:00 app[web.1 (http://web.1)]: INFO [main] > > (TransactionStatusManagerItem.java:326) > > com.arjuna.ats.internal.arjuna.recovery.TransactionStatusManagerItem.(TransactionStatusManagerItem.java:326) > > - ARJUNA12337: TransactionStatusManagerItem host: 127.0.0.1 port: 52173 > > 2012-08-19T00:24:41+00:00 app[web.1 (http://web.1)]: INFO [main] > > (TransactionStatusManager.java:137) > > com.arjuna.ats.arjuna.recovery.TransactionStatusManager.start(TransactionStatusManager.java:137) > > - ARJUNA12170: TransactionStatusManager started on port 52173 and host > > 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService > > 2012-08-19T00:24:41+00:00 heroku[web.1 (http://web.1)]: Error R11 (Bad > > bind) -> Process bound to port 52173, should be 48257 (see environment > > variable PORT) > > irrelvant logs > Apperantly, jbossjta tried to bind port 52173, but Heroku only allows port > 48257 to be bound. > > So, the question is can I open another PORT on heroku? > -- > 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
Re: Multiple differently-sized memcache caches
Honestly i've never seen this done before, so I can't be much help. Have you tried asking on StackOverflow? It's an interesting idea, I would like to hear how to do it, as well as if it was worth the time/effort in the long run. If someone else on the list has tried and has suggestions, please let us know. Depending on your situation you might consider putting at TTL (expires in) on your large data, so that it will expire by itself rather than relying on memcache to reclaim memory, this might decrease the amount of items you care about falling out of cache. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Saturday, August 18, 2012 at 11:52 AM, Carson Gross wrote: > Hi, > > Googling around didn't turn up an answer I was 100% confident in, so I'm > hoping someone can help me out. > > I'd like to set up a few different caches in my app with different sizes. In > particular I've got one stream of data that is fairly large and I want to > speculatively cache, but that becomes useless very quickly and so I want to > discard it quickly if it is not used. I don't want this data polluting the > main Rails.cache. > > From googline, it looks like creating multiple > ActiveSupport::Cache::MemoryStore's is what I want to do, but I want to make > sure I do it in a way that uses Dalli and the heroku memcache plugin > properly, and ensure that I split and isolate the memcaches from one another > properly. > > Anyone done something like this before? > > Thanks, > Carson > > -- > 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
Re: dalli or memcached for memcache?
Dalli is written in pure ruby and should work across all implementations (jruby, etc.). It should also work across any future ruby upgrades. The client with native c bindings Is faster but would be harder to debug if issues do appear. Unless you are doing hundreds of thousands or millions of calls to memcache per day you likely won't notice the speed difference. I prefer using Dalli. -- Richard Schneeman http://heroku.com @schneems Sent from the road On Friday, August 17, 2012 at 3:34 AM, Yuki Nishijima wrote: > Hi, > > I'm planning to use memcache add-on but not sure what gem I should use. > According to the documentation, dalli is > recommended but I like to use memcached gem: > https://github.com/evan/memcached because it's at least 2x faster > than dalli. > > My environment is Ruby 1.9.2-p290 and Rails 3.2.8. Both of the gems work fine > on the environment. > Can anyone describe why dalli is better? or memcached has any problem on > heroku? > > Yuki > > -- > 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: PGError: ERROR: permission denied for relation
Thanks, this type of thing is easier diagnosed through support, so it's good there is an existing ticket. Unfortunately as you've found, regular support is only available from monday to friday. I don't have the expertise to dig into this issue, though I did find this SO article: http://stackoverflow.com/questions/11930996/pgerror-error-permission-denied-for-relation which actually looks like it is yours. Can you verify that you are connecting to the correct database url. If you are using rails you can also get into your database by installing this plugin https://github.com/ddollar/heroku-sql-console and then running: $ heroku sql To verify you have access to the tables listed in your database. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, August 13, 2012 at 9:28 AM, Duncan Gough wrote: > Hi Richard, > > Thanks for the reply - I opened a ticket a few days ago: > > https://help.heroku.com/tickets/59805 > > Would be really, really great to get this fixed today. > > - Duncan > > On Monday, 13 August 2012 16:27:36 UTC+2, richard schneeman wrote: > > Please open up a support ticket: > > > > http://support.heroku.com > > > > -- > > Richard Schneeman > > http://heroku.com > > > > @schneems (http://twitter.com/schneems) > > > > > > > > > > On Monday, August 13, 2012 at 5:35 AM, Duncan Gough wrote: > > > > > Hello, > > > > > > > > > I've recently gone through the database migration process as outlined > > > here: > > > > > > > > > https://devcenter.heroku.com/articles/migrating-from-shared-database-to-heroku-postgres > > > > > > > > > Now I'm seeing a number of errors in the logs like this: > > > > > > > > > PGError: ERROR: permission denied for relation > > > > > > > > > Any ideas on what I should do to fix it? > > > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Heroku" group. > > > > > > To unsubscribe from this group, send email to > > > heroku+un...@googlegroups.com (javascript:) > > > 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 > (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
Re: PGError: ERROR: permission denied for relation
Please open up a support ticket: http://support.heroku.com -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, August 13, 2012 at 5:35 AM, Duncan Gough wrote: > Hello, > > > I've recently gone through the database migration process as outlined here: > > > https://devcenter.heroku.com/articles/migrating-from-shared-database-to-heroku-postgres > > > Now I'm seeing a number of errors in the logs like this: > > > PGError: ERROR: permission denied for relation > > > Any ideas on what I should do to fix it? > > > > -- > 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
Re: hyper_table and wkhtmltopdf issue
How does this work? You only connect and use hyper table when your RAILS_ENV is set to "hypertable" ? -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Wednesday, August 8, 2012 at 1:59 PM, Ravindra Kanchikare wrote: > Hi Richard, > > Thanks for the reply. > > i have a scenario ware i am using a mysql along with hypertable > > my database.yml file in development environment look like this > > development: > adapter: mysql > encoding: utf8 > reconnect: false > database: X_development > pool: 5 > username: root > password: > > test: &test > adapter: mysql > encoding: utf8 > reconnect: false > database: X_test > pool: 5 > username: root > password: > > production: > adapter: mysql > encoding: utf8 > reconnect: false > database: X_production > pool: 5 > username: root > password: > > hypertable: > adapter: hypertable > host: xx.xx.xxx.xx > port: 38080 > namespace: > > > For MySQL i am using clearDB vis config vars > > CLEARDB_DATABASE_URL=mysql://xxx:8a387...@xx--.cleardb.com > (mailto:8a387...@xx--.cleardb.com)/heroku_?reconnect=true > > > On Wednesday, August 8, 2012 7:42:55 PM UTC+5:30, richard schneeman wrote: > > You can set the DATABASE_URL in your config variables on Heroku to point at > > your hyper table database hosted anywhere else in the world. > > > > -- > > Richard Schneeman > > http://heroku.com > > @schneems > > > > Sent from the road > > > > > > On Wednesday, August 8, 2012 at 6:16 AM, Ravindra Kanchikare wrote: > > > > > I have built a rails3 application which uses hyper_table gem > > > http://code.google.com/p/hypertable/wiki/HyperRecord. This gem needs a > > > entry in database.yml as shown bellow > > > Host is currently hosted in rackspace. since heroku deployment over > > > writes our configuration we are not able to connect to rackspace from > > > heroku application. > > > And We use pdfkit for pdf generation it needs wkhtmltopdf to be in path > > > (ex: /usr/local/bin/wkhtmltopdf). How can we come over these problems > > > Hypertable configuration: > > > hypertable: > > >adapter: hypertable > > >host: xx.xx.xxx.xx > > >port: 38080 > > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Heroku" group. > > > > > > To unsubscribe from this group, send email to > > > heroku+un...@googlegroups.com (javascript:) > > > 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 > (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
Re: hyper_table and wkhtmltopdf issue
You can set the DATABASE_URL in your config variables on Heroku to point at your hyper table database hosted anywhere else in the world. -- Richard Schneeman http://heroku.com @schneems Sent from the road On Wednesday, August 8, 2012 at 6:16 AM, Ravindra Kanchikare wrote: > I have built a rails3 application which uses hyper_table gem > http://code.google.com/p/hypertable/wiki/HyperRecord. This gem needs a entry > in database.yml as shown bellow > Host is currently hosted in rackspace. since heroku deployment over writes > our configuration we are not able to connect to rackspace from heroku > application. > And We use pdfkit for pdf generation it needs wkhtmltopdf to be in path (ex: > /usr/local/bin/wkhtmltopdf). How can we come over these problems > Hypertable configuration: > hypertable: >adapter: hypertable >host: xx.xx.xxx.xx >port: 38080 > > -- > 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: App Crashed on unidle
Kevin, If you $ heroku run bash Do you see the file in the right directory? -- Richard Schneeman http://heroku.com @schneems Sent from the road On Saturday, July 14, 2012 at 5:39 PM, Kevin Mooney wrote: > Here's a bit more context on that log: > > > 2012-07-13T01:08:43+00:00 heroku[router]: GET docs.webcubecms.com/ dyno=web.1 > queue=0 wait=0ms service=17ms > status=200 bytes=179302 > 2012-07-13T01:24:58+00:00 heroku[router]: GET docs.webcubecms.com/robots.txt > dyno=web.1 queue=0 wait=0ms se > rvice=5ms status=404 bytes=238 > 2012-07-13T01:24:58+00:00 app[web.1]: 10.5.22.206 - - [13/Jul/2012 01:24:58] > "GET /robots.txt HTTP/1.1" 404 > - > 2012-07-13T02:29:35+00:00 heroku[web.1]: Idling > 2012-07-13T02:29:37+00:00 heroku[web.1]: Stopping all processes with SIGTERM > 2012-07-13T02:29:37+00:00 app[web.1]: Terminated > 2012-07-13T02:29:38+00:00 heroku[web.1]: Process exited with status 143 > 2012-07-13T02:29:38+00:00 heroku[web.1]: State changed from up to down > 2012-07-13T02:58:17+00:00 heroku[web.1]: Unidling > 2012-07-13T02:58:17+00:00 heroku[web.1]: State changed from down to starting > 2012-07-13T02:58:19+00:00 heroku[web.1]: Starting process with command `cd > .heroku/app && python app.py` > 2012-07-13T02:58:20+00:00 app[web.1]: Error: No such file or directory > 2012-07-13T02:58:21+00:00 heroku[web.1]: Process exited with status 126 > 2012-07-13T02:58:21+00:00 heroku[web.1]: State changed from starting to > crashed > 2012-07-13T02:58:21+00:00 heroku[web.1]: State changed from crashed to > starting > 2012-07-13T02:58:23+00:00 heroku[web.1]: Starting process with command `cd > .heroku/app && python app.py` > > > > > > On Saturday, July 14, 2012 5:37:49 PM UTC-5, Kevin Mooney wrote: > > Hi Everyone, > > > >So I have this application that is running a custom buildpack that > > creates a simple flask server and runs. Everything had been working > > perfectly for months, until Friday, when the app idled, then when it came > > back from idling, it died with the following error: > > > > 2012-07-13T02:58:19+00:00 heroku[web.1]: Starting process with command `cd > > .heroku/app && python app.py` 2012-07-13T02:58:20+00:00 app[web.1]: Error: > > No such file or directory > > > > I haven't touched the buildpack or even the source since I started running > > the app, and no one had changed the code or the build pack around the time > > that it broke. Are there any known platform changes (live in the last few > > days) that would cause this to occur? > > > > Thanks, > > Kevin > > -- > 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: all heroku local commands fail with "no such account work"
Can you please give us the error? -- Richard Schneeman http://heroku.com @schneems Sent from the road On Monday, June 25, 2012 at 9:27 PM, SimonS wrote: > I've completely sewed up my Heroku setup had a ticket open for over 24 hours > hours and am running out of options. Please help. > > I have a validated heroku account and can log into the website. > > I'm running on OSX Lion 10.7, have RVM (1.14.1), ruby (1.9.3p125), rails > 3.2.3, heroku gem (2.28.2) and have the latest tool belt installed. > > I have not used heroku for a while, was getting some authentication errors > and started deleting stuff. How do a compleatley reset my setup and connect > to my existing heroku account and app. > > I'm lost...and unable to do anything..every heroku command returns the same > error. > > Thanks > -Simon > -- > 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: reverse proxying with an Apache dyno
There was a thread awhile ago about using a rack based reverse proxy gem. Maybe someone who has tried that could give you their experience. As you mentioned this setup seems like it took quite a bit of work. Many frameworks like Rails have the ability to mount applications within your application. So you can have for example several sinatra apps actually running within your app. Or depending on how you wanted to split things up you can just have different apps serving different subdomains, which is actually what Heroku does. blog.heroku.com, addons.heroku.com, etc. they are all separate (mostly ruby) apps. We link them together with shared style sheets and a gem that can provide a consistent header and footer. I know there are some minor issues with embedding apache into a dyno, but i've not had enough experience with it first hand to tell you what they are, just be on the look out for any unexpected behavior. In general we advocate one codebase per each application http://www.12factor.net/codebase. If each section of your app can stand on its own, splitting out your app can make sense. For instance it would be reasonable for Heroku to have a blog without needing addons or vice versa. But it doesn't make much sense if data is regularly passed between different apps using your apache routing layer. This makes your app much more coupled, harder to debug and potentially failure prone. Note that this is different from Service Oriented Architecture, which is completely acceptable since each piece should be able to be run independently, and with layers of error handling put into place. For serving static content, we recommend bypassing your stack altogether and using a CDN such as cloud front. Not only is this going to be much faster, it will take load off of your server so it can handle more requests. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, June 25, 2012 at 7:00 PM, Brandon Rhodes wrote: > Hosting providers like WebFaction make it easy to assemble full web > sites out of smaller pieces. They provide a control panel that lets you > add entries to WebFaction's nginx configuration so you can (for example) > serve "/static" URLs using Apache, serve "/blog" from a WordPress > instance, and send everything else to your dynamic web application. > > When I saw Kenneth Reitz's blog post "Static Sites on Heroku Cedar", I > wondered whether a similar arrangement might be possible on Heroku: > > http://kennethreitz.com/static-sites-on-heroku-cedar.html > > With a bit of work, I have found that such an arrangement is indeed > possible. > > But I wanted to ask here on the mailing list whether this approach is in > the spirit of the service that Heroku is trying to provide - and whether > the performance I am seeing is reasonable or not. > > Building Apache with mod_proxy > -- > > The default Heroku buildpack that Kenneth uses in the above blog post > does not include mod_proxy, but only mod_rewrite. So the first step was > to create a slightly modified fork of the default Heroku PHP buildpack: > > https://github.com/brandon-rhodes/heroku-buildpack-php > > Instead of using the Apache and PHP tarballs that Heroku provides under > the "php-lp" S3 bucket, I had to build an alternative pair of tarballs > and make them available under my own S3 bucket. You can see the > procedure for building the tarballs in "README.md (http://README.md)" my fork > of the > repository. > > I ran the "README.md (http://README.md)" steps on a Heroku Cedar instance to > make sure that > they would be binary-compatible with the Heroku dyno standbox: > > $ heroku run bash > Running `bash` attached to terminal... up, run.2 > ~ $ cd /app > ~ $ curl -O http://apache.cyberuse.com/httpd/httpd-2.2.22.tar.gz > ... > and so forth > > (I actually skipped the "pear" section of the README, because "apt-get" > did not seem to be available in the sandbox. Hope it was not important.) > > This produces two *.tar.gz files that are in great danger of > disappearing, because as soon as you exit bash the temporary instance > produced by "heroku run" will be destroyed along with its filesystem. > So I used "nc" to copy the tarballs off to another server before exiting > bash, then put the tarballs on S3 like Heroku does (using s3cmd), and, > finally, updated the URLs in "heroku-buildpack-php/bin/compile" to point > at the new location. > > Building a proxy with this custom buildpack > --- > > Kenneth used an ".htaccess" file to turn off the PHP engine. With this > buildpack we
Re: Reverse Proxying
For Reverse proxy in Rails app, I haven't used one but this looks promising: https://github.com/jaswope/rack-reverse-proxy You could do it _in_ the rails app, but it will be much more performant if you do it through a rack middleware. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Wednesday, June 20, 2012 at 11:04 AM, Jeff Schmitz wrote: > Because search engines don't consider blog.youapp.com > (http://blog.youapp.com) as part of yourapp.com (http://yourapp.com). > > So you get the small benefit of additional inbound links, and a large minus > from relevant content not being on my site. > > On Wed, Jun 20, 2012 at 10:29 AM, Neil Middleton (mailto:neil.middle...@gmail.com)> wrote: > > Is there a valid reason for wanting to avoid serving directly from > > blog.yourapp.com (http://blog.yourapp.com) (i.e are 301's sufficient?) > > > > On Wednesday, 20 June 2012 at 16:27, Jeff Schmitz wrote: > > > > > > > > > I'd like to set up a reverse proxy, so that requests to > > > myherokuapp.com/blog (http://myherokuapp.com/blog) are served by > > > blog.myherokuapp.com (http://blog.myherokuapp.com) without the user being > > > any the wiser. > > > > > > However, I haven't seen any way to do this in Heroku. > > > > > > Has anybody > > > > > > 1) been able to do configure this, or > > > 2) been able to reverse proxy within their Rails app via gem/plugin, or > > > 3) deployed a blog gem/plugin within their Rails app that they love > > > > > > Tired of losing SEO juice, searching for answers... > > > > > > Thanks > > > > > > jeff > > > > > > > > > > > > -- > > > 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 > > (mailto:heroku%2bunsubscr...@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 > (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
Re: Heroku Facebook App help for a Noob?
If just getting started and up for using Ruby, RailsGirls maintains a nice getting started tutorial that covers deploying to Heroku. http://guides.railsgirls.com/app/ It's awesome that you're diving in, if you're so inclined you can follow along with my latest Rails course on my blog. The videos for week 1 are here: http://schneems.com/post/25098659429/databases-rails-week-1-introduction Though that will perhaps be a bit at too high of a level. Another resource is Rails for Zombies (learn how to build a Rails site while completing missions) http://railsforzombies.com/. If you're looking for a reference/walkthrough i recommend http://pragprog.com/book/rails4/agile-web-development-with-rails. If you are following along with the Facebook tutorial this video might be helpful: Deploy and Edit a Facebook app in 5 min: http://www.youtube.com/watch?v=HgiONvm5JB0 -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, June 18, 2012 at 3:39 PM, Sam Stuart wrote: > Hi, > > I'm trying to develop a Facebook app using Heroku, (I'm a complete and total > 15 year old noob to anything to do with programming, but am a fast learner!) > This is the guide I'm following: > https://devcenter.heroku.com/articles/facebook#what_is_heroku > > So far so good except until I got to "Make a Change," stage where I tweak the > app. It says to edit the index.php file and then deploy it, but I have no > idea where it is, or how to find it/download it. I haven't done any app > writing on my computer yet, as it just put up a default one for me at this > URL: http://growing-dusk-6085.herokuapp.com/, so I don't have any existing > files to do with this app on my laptop. (That I know of...) > > Can anyone help?? > > Thanks eternally, > > Sam > > > -- > 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
Re: No such file to load -- /app/app/assets/stylesheets/resources/sass/../../resources/themes (LoadError)
I would recommend running on this in your local machine as production. $ rake db:create RAILS_ENV=production $ rake db:migrate RAILS_ENV=production $ rails server RAILS_ENV=production You should get the same error locally as on Heroku. It will be easier to debug locally though -- Richard Schneeman http://heroku.com @schneems Sent from the road On Saturday, June 9, 2012 at 3:42 PM, swetonic wrote: > Hello, > > I have a rails3 app that runs fine locally. When I deploy the app to > heroku (git push heroku master) the app fails to start. Anyone have > any ideas? > > > 2012-06-09T20:36:52+00:00 app[web.1]: => Booting WEBrick > 2012-06-09T20:36:52+00:00 app[web.1]: => Rails 3.2.1 application > starting in production on http://0.0.0.0:32279 > 2012-06-09T20:36:52+00:00 app[web.1]: => Call with -d to detach > 2012-06-09T20:36:52+00:00 app[web.1]: => Ctrl-C to shutdown server > 2012-06-09T20:36:52+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/ > gems/activesupport-3.2.1/lib/active_support/dependencies.rb:317:in > `rescue in depend_on': No such file to load -- /app/app/assets/ > stylesheets/resources/sass/../../resources/themes (LoadError) > 2012-06-09T20:36:52+00:00 app[web.1]: Exiting > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb: > 312:in `depend_on' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb: > 225:in `require_dependency' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:439:in `block (2 levels) > in eager_load!' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:438:in `each' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:438:in `block in > eager_load!' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:436:in `each' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:436:in `eager_load!' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/application/finisher.rb:53:in > `block in ' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in > `instance_exec' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in > run_initializers' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/initializa > ble.rb:54:in `run_initializers' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/application.rb:136:in > `initialize!' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in > `method_missing' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/config.ru:4:in > `require' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/config/environment.rb: > 5:in `' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/config.ru:4:in `block > in ' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/config.ru:1:in `new' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/config.ru:1:in > `' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app' > 2012-06-09T20:36:52+00:00 app[web.1]: from /app/vendor/bundle/ruby/ > 1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:46:in `a
Re: pgbackups:restore permission issues
Can you create an issue for this? http://support.herouk.com -- Richard Schneeman http://heroku.com @schneems Sent from the road On Monday, June 4, 2012 at 5:30 PM, Kallin Nagelberg wrote: > Hey everyone, > > I have two apps on Heroku, both with Ronin databases. One is production and > works, the 2nd is staging which I'm trying to get going by pulling in a > production backup. > I have successfully created the backup on production and gotten it's public > URL, and then used that URL to restore into the staging app's database. The > command says it executes fine, but the logs say otherwise. The command is > like: > > heroku pgbackups:restore DATABASE "some URL" --app my-app-1234 > > and in the logs I see msgs like: > > 2012-06-04T22:09:42+00:00 app[postgres]: [5-1] ud3otvib1qnvbo [MAROON] LOG: > duration: 493.029 ms statement: ALTER TABLE ONLY public.referral DROP > CONSTRAINT fkd4ee7b9d375d7727; > 2012-06-04T22:09:42+00:00 app[postgres]: [5-2] #011 > 2012-06-04T22:09:42+00:00 app[postgres]: [6-1] ud3otvib1qnvbo [MAROON] ERROR: > must be owner of schema public > 2012-06-04T22:09:42+00:00 app[postgres]: [6-2] ud3otvib1qnvbo [MAROON] > STATEMENT: DROP SCHEMA public; > 2012-06-04T22:09:42+00:00 app[postgres]: [6-3] #011 > 2012-06-04T22:09:42+00:00 app[postgres]: [7-1] ud3otvib1qnvbo [MAROON] ERROR: > schema "public" already exists > 2012-06-04T22:09:42+00:00 app[postgres]: [7-2] ud3otvib1qnvbo [MAROON] > STATEMENT: CREATE SCHEMA public; > 2012-06-04T22:09:42+00:00 app[postgres]: [7-3] #011 > 2012-06-04T22:09:42+00:00 app[postgres]: [7-4] #011 > 2012-06-04T22:09:42+00:00 app[postgres]: [7-5] #011 > 2012-06-04T22:09:42+00:00 app[postgres]: [8-1] ud3otvib1qnvbo [MAROON] ERROR: > must be owner of schema public > 2012-06-04T22:09:42+00:00 app[postgres]: [8-2] ud3otvib1qnvbo [MAROON] > STATEMENT: COMMENT ON SCHEMA public IS 'standard public schema'; > > > > So the restore isn't working. I've been digging but can't figure out what I > might be doing wrong. 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 -- 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: Installing the Heroku Commands
Can you post this question to Stack Overflow and then give us a link to the post? In the stack overflow question please provide us with any error messages your getting and we can try to help, and tag it with "heroku" -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Saturday, May 19, 2012 at 3:23 PM, Thijs Roumen wrote: > Hey everyone, > > I guess I have a super simple question but it has taken me all day now > to try and solve it by myself.. I hope though that some of you might > be able to help me out. > > I just installed all the heroku toolbelt stuff and ruby and git. I > think I performed all the required steps to properly install it, but > according to the documentation on the Heroku websites I should now be > able to run the heroku login commands. But that does not seem to work. > What do you guys think went wrong? > > Best Regards > > Thijs > > -- > 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
Re: "Heroku push failed due to unrecognized error" / jekyll
Whats the error output of the push? -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Friday, May 11, 2012 at 2:47 PM, Jay Vyas wrote: > Hi guys : I changed the buildpack for my heroku site from ruby to a custom > jekyll one as per this tutorial : > > https://github.com/markpundsack/jekyll-example-with-heroku-buildpack > > It seems to work fine running jekyll locally, but crashes when i push it to > git using > > git push heroku +master > > Any thoughts ? > > -- > Jay Vyas > MMSB/UCHC > -- > 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
Re: Multiple Ruby Version Support on Heroku
You will need to move to cedar to use this feature -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Thursday, May 10, 2012 at 6:50 AM, Daniel Doubrovkine wrote: > I tried to get it to work on bamboo and I can't get Heroku to use bundler > 1.2.0-pre, it keeps defaulting to 1.0.7. > > -> Heroku receiving push > -> Ruby/Rails app detected > -> Detected Rails is not set to serve static_assets >Installing rails3_serve_static_assets... done > -> Configure Rails 3 to disable x-sendfile >Installing rails3_disable_x_sendfile... done > -> Configure Rails to log to stdout >Installing rails_log_stdout... done > -> Gemfile detected, running Bundler version 1.0.7 > > Is this only supported on Cedar? > > Thanks, > dB. > > On Wed, May 9, 2012 at 11:29 AM, richard schneeman > mailto:richard.schnee...@gmail.com)> wrote: > > Starting now, you can pick your version of Ruby on Heroku, try it out right > > now! > > > > http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/ > > > > -- > > @schneems > > > > -- > > 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%2bunsubscr...@googlegroups.com) > > For more options, visit this group at > > http://groups.google.com/group/heroku?hl=en_US?hl=en > > > > -- > dB. | Moscow - Geneva - Seattle - New York > dblock.org (http://www.dblock.org) - @dblockdotorg > (http://twitter.com/#!/dblockdotorg) > -- > 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
Re: Renaming the Hosting URL for a Facebook App
After I remove it, I can add it back. Let me know if that doesn't work. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Saturday, April 21, 2012 at 6:31 AM, nK0de wrote: > given is to remove it. No option to edit/change. Is that setting in > -- 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: Renaming the Hosting URL for a Facebook App
You need to change your hosting url http://stark-river-7862.herokuapp.com no longer exists -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Friday, April 20, 2012 at 12:44 PM, nK0de wrote: > I just started developing a Facebook App. I'm having trouble understanding > some things working with Heroku, the free hosting platform for the apps. > > So I created the App on Facebook. And from Heroku, I renamed the App. > > > > > > > And from Facebook under App on Facebook, I changed Canvas URL and Secure > Canvas URL accordingly. But the Hosting URL still has the old URL which was > given when I created the app. The only option given is to remove it. How can > I edit this and give the new URL? > > > > > When I navigate to my app using the Canvas URL which is given there, it shows > me this error page. > > > > > > What am I missing here? What am I supposed to do now? Any guidance would be > greatly appreciated as I'm really confused with this. > Thank you. > > -- > 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
Re: Issues with Asset Sync
I recommend not using asset sync to if you're just trying to use cloudfront, you can just have it pull your assets directly from your app. You can see how to do it here: http://ryantownsend.co.uk/post/13126016608/cloudfront-cdn-on-rails Essentially just sign up for a CDN on Cloud Front Set this in your production.rb config.action_controller.asset_host = ENV["cloudfront_url"] And you're good to go you can also add config.static_cache_control = "public, max-age=2592000" and config.assets.digest = true To get the best experience with the whole process. Let me know if you have questions about these settings, or run into issues. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Friday, April 20, 2012 at 9:33 AM, brianthecoder wrote: > So I followed the guide here > https://devcenter.heroku.com/articles/cdn-asset-host-rails31, but for some > reason, during the assets:precompile rake task. Its not picking up any of my > environment variables. I even added a line to inspect the environment > variables in the asset_sync initalizer, and none of the environment variables > I have configured were in there. Am I missing something? > > -- > 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
Re: remove my first app message from post to wall box
You can remove it manually from your Facebook Feed. You will need to clone the code locally to your hard drive. From there you can change the contents of the wall post, and re-deploy. I'm actually working on a getting started with Facebook and Heroku screencast. Is there something specifically you're interested in doing with a Facebook App? -- Richard Schneeman Heroku.com (http://Heroku.com) On Thursday, April 19, 2012 at 1:06 PM, menik wrote: > I have set up a app with heroku but when i use the post to wall from > within the application is shows up with the app name then underneath > "my first app" how do i remove this? > > -- > 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
Re: Facebook incomplete authorization
what redirect uri are you giving it and what is it coming back as? -- Richard Schneeman Heroku.com (http://Heroku.com) On Monday, April 16, 2012 at 9:51 AM, Athos wrote: > I have app in Ruby on Rails and works perfectly local. This app use Facebook > graph api and is on heroku. After authentication redirect uri is diferrent > local from redirect uri in heroku. I think it relates with processes and dyno > from Heroku. > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/heroku/-/YAL_WAETX-IJ. > To post to this group, send email to heroku@googlegroups.com > (mailto:heroku@googlegroups.com). > 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. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@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: set process.env.PORT
There are some limitations with socket communication check out this article https://devcenter.heroku.com/articles/realtime-polyglot-app-node-ruby-mongodb-socketio#pushing_messages_to_the_browser_with_socketio -- Richard Schneeman On Monday, April 16, 2012 at 5:17 AM, Yusuf X wrote: > I have a server that listens with socket.io (http://socket.io) on > process.env.port , but the port changes every time, so how can I get the > client to connect to it? Is there a way to pin the server port to an > unchanging number? I tried "heroku config:add PORT=12345" but that doesn't > seem to have any effect. TIA > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/heroku/-/K8Fh_clPAO8J. > To post to this group, send email to heroku@googlegroups.com > (mailto:heroku@googlegroups.com). > 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. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@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: Install of toolbelt on Unbuntu 10.04 Lucid fails
can you please make a new request at support.heroku.com -- Richard Schneeman Heroku.com (http://Heroku.com) On Sunday, April 15, 2012 at 11:24 AM, ghendricks wrote: > Following the steps at https://toolbelt.herokuapp.com/linux I get the > following after running wget -qO- https://toolbelt.heroku.com/install.sh > | sh > > W: Failed to fetch http://toolbelt.herokuapp.com/ubuntu/./Packages.bz2 > Hash Sum mismatch > W: Failed to fetch http://toolbelt.heroku.com/ubuntu/./Packages.bz2 > Hash Sum mismatch > > When I try downloading it directly, I get the same error. Was there a > change to the package recently where the MD5 sum was not updated? > > ++Greg > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com > (mailto:heroku@googlegroups.com). > 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. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@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: H12 Request Timeout
I'm not sure then. If it is just happening sporadically can you contact support.heroku.com please? -- Richard Schneeman http://heroku.com @schneems Sent from the road On Monday, April 2, 2012 at 1:54 PM, kowsik wrote: > Neil, > Just the odd timeouts. > > Thanks, > > K. > --- > http://blitz.io > @k0ws1k > > On Mon, Apr 2, 2012 at 11:39 AM, Neil Middleton > wrote: > > Kowsik, > > > > Are you seeing long queues or just the odd timeout? > > > > -Neil > > > > Sent with my tiny little Internet device. > > > > On Monday, 2 April 2012 at 19:22, Richard Schneeman wrote: > > > > I do you have rack cache on your app? I recommend setting that up and using > > memcache for the meta store. Also setting your expire headers on static > > assets to a far future date. That should help with timeouts especially with > > static assets. You can also try using a CDN but that is quite a bit more > > work for sinatra > > https://devcenter.heroku.com/articles/error-codes#h12__request_timeout > > > > You can also consider increasing your dyno count. What web server are you > > using? > > > > -- > > Richard Schneeman > > http://heroku.com > > @schneems > > > > On Monday, April 2, 2012 at 12:27 PM, kowsik wrote: > > > > We are seeing sporadic H12 Request Timeout's in the logs, even for > > static assets: > > > > 2012-04-02T17:25:06+00:00 heroku[router]: Error H12 (Request timeout) > > -> GET blitz.io/images/logo.png dyno=web.1 queue= wait= > > service=3ms status=503 bytes=0 > > > > This is a Sinatra app on the Cedar stack. Given that this is a static > > asset, I'm pretty sure it's not our code or our database that's > > causing the problem. > > > > Any ideas? > > > > Thanks, > > > > K. > > --- > > http://blitz.io > > @k0ws1k > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Heroku" group. > > To post to this group, send email to heroku@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 heroku@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 heroku@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 heroku@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 heroku@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: H12 Request Timeout
I do you have rack cache on your app? I recommend setting that up and using memcache for the meta store. Also setting your expire headers on static assets to a far future date. That should help with timeouts especially with static assets. You can also try using a CDN but that is quite a bit more work for sinatra https://devcenter.heroku.com/articles/error-codes#h12__request_timeout You can also consider increasing your dyno count. What web server are you using? -- Richard Schneeman http://heroku.com @schneems On Monday, April 2, 2012 at 12:27 PM, kowsik wrote: > We are seeing sporadic H12 Request Timeout's in the logs, even for > static assets: > > 2012-04-02T17:25:06+00:00 heroku[router]: Error H12 (Request timeout) > -> GET blitz.io/images/logo.png dyno=web.1 queue= wait= > service=3ms status=503 bytes=0 > > This is a Sinatra app on the Cedar stack. Given that this is a static > asset, I'm pretty sure it's not our code or our database that's > causing the problem. > > Any ideas? > > Thanks, > > K. > --- > http://blitz.io > @k0ws1k > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@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 heroku@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 Toolbar problem
Can you please make a support ticket support.heroku.com for this issue? -- Richard Schneeman Heroku.com (http://Heroku.com) On Monday, April 2, 2012 at 10:20 AM, Simon Wakéus wrote: > Hi! > > So I installed Heroku Toolbelt on my pc, but when I'm trying to start > it, this black box poppes up, the next second it fills with text, but > before I can read what it says, it just turns off. The program shut it > self down. > > I tried re-install it several times, but I still get the same error. > > Any ideas how I can make Heroku Toolbar work? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com > (mailto:heroku@googlegroups.com). > 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. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@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: Upload from Rails app to S3 bucket upload failing with "No such file or directory"
For file uploads to S3 I would recommend using paperclip https://github.com/thoughtbot/paperclip, that is what I typically use in my projects. I've never tried directly manipulating an S3 bucket as a file, and I believe you need to go through their API. I have also used Fog (https://github.com/fog/fog) and Carrierwave (https://github.com/jnicklas/carrierwave). Give those a look and it should help a bit. -- @schneems -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the web visit https://groups.google.com/d/msg/heroku/-/D1b8J_bO7-4J. To post to this group, send email to heroku@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: Problems installing toolbelt on Ubuntu
Can you create a support ticket for this http://support.heroku.com ? -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@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: How to save user responses on the server
You will need to store the results to a data store such as PostgreSQL or use a third party questionnaire provider. Heroku does provide a shared PostgreSQL database with each Heroku App where you could store the data. That woul require you to set the schema and then insert and select the data you desire. On Mar 23, 1:22 pm, Anthony Fontanilla wrote: > I want to make a Facebook app that's like a questionnaire. > > After the user answers the questions, it will display statistics about > how everyone who took the questionnaire answered. It will show what % > of people answered "yes" and what % of people answered "no." > > In order to do this, I need to save the user's answers somewhere. I > heard that I can't save it to the Heroku server? > > How do I save user's responses so that they can be retrieved later to > do these calculations? -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@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: Assets Precompile: Works Locally, Heroku Skips Some Files
So if you bash into your application, are your files also missing from the dyno or can you see your the files? I'm curious if the files are not being generated correctly, or just not being synced correctly. $ heroku run bash Running bash attached to terminal... up, run.1 ~ $ ls public/assets application-95bd4fe1de99c1cd91ec8e6f348a44bd.css application.css manifest.yml application-95bd4fe1de99c1cd91ec8e6f348a44bd.css.gz application.css.gzrails-782b548cc1ba7f898cdad2d9eb8420d2.png application-95fca227f3857c8ac9e7ba4ffed80386.js application.jsrails.png application-95fca227f3857c8ac9e7ba4ffed80386.js.gz application.js.gz What about your manifest.yml? ~ $ cat public/assets/manifest.yml rails.png: rails-782b548cc1ba7f898cdad2d9eb8420d2.png application.js: application-95fca227f3857c8ac9e7ba4ffed80386.js application.css: application-95bd4fe1de99c1cd91ec8e6f348a44bd.css Have you opened a https://support.heroku.com ticket for this issue? -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@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: publishing a static website on to Heroku
Hey Tony, Glad you're trying out node! If you want to create a separate application that hosts your static html, it is possible to do this using an article by Heroku's own Kenneth http://kennethreitz.com/static-sites-on-heroku-cedar.html . If you already have a Node.js site and the static content is related to that, you can serve static pages from a public directory in your Node.js app, but it requires a little configuration. If you want to give access to all static elements in a directory you can check out this tutorial at site point: http://www.sitepoint.com/serving-static-files-with-node-js/ which uses node-static or if you just want to do it on a file-by-file basis you can use this stack-overflow article: http://stackoverflow.com/questions/4720343/loading-basic-html-in-nodejs. Hope that helps. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the web visit https://groups.google.com/d/msg/heroku/-/MroOJhh2LKQJ. To post to this group, send email to heroku@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.