Re: Assets Precompile: Works Locally, Heroku Skips Some Files
On Tuesday, March 20, 2012 8:51:24 AM UTC-7, richard schneeman wrote: 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? Yup, already tried that... manifest.yml is there. But... ~ $ cat public/assets/manifest.yml rails.png: rails-782b548cc1ba7f898cdad2d9eb8420d2.png application.js: application-95fca227f3857c8ac9e7ba4ffed80386.js application.css: application-95bd4fe1de99c1cd91ec8e6f348a44bd.css The manifest.yml is there, but the yaml is an empty array. What is happening is heroku still *attempts* to compile assets, but borks, overwrites my manifest.yml with a manifest.yml that is essentially an empty array (not an empty file, though). Have you opened a https://support.heroku.com ticket for this issue? Yes. Been a week, the issue was escalated, but still no response. Frustration ensues. The only workaround I have it to turn assets.compile = true, and it directs the user to the assets on S3, but they are not compiled/combined/gzip'd. Do you have any other ideas? -- 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/-/Unp8Kw9FFWoJ. 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: Keeping your Heroku app awake
Last update on that page say 1h: http://devcenter.heroku.com/articles/dyno-idling Vz Le mercredi 22 février 2012 18:09:48 UTC, Mike a écrit : Did heroku turn down the time your app stays awake without any requests? In the past it was in the 20 to 25 minute range, IIRC. Mike On Wednesday, February 22, 2012 at 10:04 AM, Kevin Goslar wrote: With that, you keep Heroku unnecessarily busy by having them start a dyno 24 times every day, and your app still sleeps 55 min per hour. On Wed, Feb 22, 2012 at 4:17 AM, Nick ntaberna...@gmail.com wrote: An option for a single site is http://www.pingdom.com/ They can 'ping' your site every hour thereby keeping it awake. It's free for one site. On Feb 21, 8:38 am, Sejensen sejen...@gmail.com wrote: Hi Neil and others These recommandations for Rails apps looks very good, But in my case i use Scala and the netty server and spin-up time is not good at all. And I am not sure it can be tuned so much as the sinatra case when the platform is java. Do anyone have any suggestions for my combo? Kind regards Steffen On Feb 20, 11:15 pm, Neil Middleton neil.middle...@gmail.com wrote: To be brutally honest, there is no hard and fast rule, but I have found the following: - Rails is really fast at slowing down, so ensure that your dependencies and initialisers are at an absolute minimum. - Keep things small and lightweight, break your application up into lots of smaller applications. Sinatra, for instance, spins up almost instantly on Heroku and can take you a fair distance in terms of simple functionality - Generally speaking, the newer the Rails version, the quicker the spinup time, especially if you're not using ActiveRecord - If you're feeling beta-y, try running on Ruby 1.9.3, this makes a massive difference to Rails. Other than this, I'm not really aware of any silver bullet, but I do know that lots of smaller more focused applications spin up better than one monolithic Rails app, which is why Unix is so good I guess. -Neil On Monday, 20 February 2012 at 21:56, Ed Jones wrote: Neil said: I host loads of apps on 1 web dyno and just make sure that the spin up time is short enough that it's not a problem. Neil and others, thanks. I just launched a new (beta) app, and the response time is just horrible. Could you pass a few tips on how to make sure that the spin up time is short enough? Thanks!!! ed On Feb 17, 7:48 am, Neil Middleton neil.middle...@gmail.com ( http://gmail.com) wrote: I'm confused here. The 'starter' package is only ~$35/mo which isn't exactly monumentally expensive. Are you suggesting something between that and free? What you're suggesting sounds like your charged by the CPU cycle rather than the hours? To be brutally honest, I host loads of apps on 1 web dyno and just make sure that the spin up time is short enough that it's not a problem. If I ever need to run more than 1 web dyno it's generally because the traffic levels require it, in which case $35 becomes less of a problem. Personally, I think that having a single dyno, which can still serve hundreds of thousands of requests a day /for free/ is a pretty good deal. I'm happy to pay $35 to double it. Neil On Friday, 17 February 2012 at 12:44, Nick wrote: Peter, I take your points well. I don't mean to try and 'do one over' on Heroku. I appreciate the service you offer very much. My thinking behind it was that you would never exceed the 450 hours of dyno time allocated to each app so there wouldn't be a problem and if you did you would be charged anyway. Is there a paid for solution from Heroku to achieve the same result? The cost jump between 1 free dyno and paying for a dyno is quite large for small applications. So perhaps you could offer a $10 package which essentialy works the same way? If i'm honest I don't feel I pay Heroku enough but I have too many small apps (10 or so) to pay for each one to have a dedicated dyno. ? On Feb 16, 8:39 pm, Peter van Hardenberg p...@heroku.com ( http://heroku.com) wrote: As a database guy at Heroku, I'm not one to speak authoritatively on this, so please take this as the personal thoughts of someone and not an official statement. We idle apps in order to avoid having to charge for them. The more people who prevent this behaviour, the more expensive our free apps become to run, and the more likely we are to have to change our policies about what we can offer in a free app. While I admire the ingenuity in this post, I would suggest that you reduce the amount of time your application takes to boot, or simply accept that a few seconds of lag on the
External database connection via SSL
I'm running a Rails 3.2 app on the Cedar stack. I've successfully configured it to connect to an external Amazon RDS database using the appropriate DATABASE_URL config variable. However, I want my application to connect to the database via SSL. This would normally be configured in database.yml, but since Heroku generates this for me, I don't know how or where to specify the SSL option(s). Is this possible? Thanks!, Nathan P.S. I posted a question about this on stackoverflow a few days ago, but haven't seen much response to it, so I thought this list might be a better avenue. http://stackoverflow.com/questions/9741072/specify-ssl-for-heroku-external-mysql-database-connection -- 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.
serving wong version ??
Hi all. I'm going nuts looking at this. I have an app that has been fine. I've been deploying to it now and then for a few weeks. Today things have gotten out of sync. I have a local branch master that is a tracking branch of my remote heroku/master. Both are pointing to the same commit. However, when I hit the pp, it is running code from several commits ago. For example, I am getting an exception from a line that is no longer in the code base. It is like the app is not updating. Nothing funky in the logs, and again, git says that are both pointing to the same commit. I'm running the python cedar stack. Obviously I am missing something that is staring me in the face, but I can't find it. Any helpful pointers? -- 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/-/h-v6IaGbFaEJ. 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: External database connection via SSL
From looking at the injected database.yml (see bottom of http://neilmiddleton.com/sharing-databases-between-heroku-applications/) you can pass in extra configuration as part of the db URL as query params. In theory, this should let you configure it how you want although I've not tried it. -Neil On Monday, 19 March 2012 at 16:53, Nathan Wenneker wrote: I'm running a Rails 3.2 app on the Cedar stack. I've successfully configured it to connect to an external Amazon RDS database using the appropriate DATABASE_URL config variable. However, I want my application to connect to the database via SSL. This would normally be configured in database.yml, but since Heroku generates this for me, I don't know how or where to specify the SSL option(s). Is this possible? Thanks!, Nathan P.S. I posted a question about this on stackoverflow a few days ago, but haven't seen much response to it, so I thought this list might be a better avenue. http://stackoverflow.com/questions/9741072/specify-ssl-for-heroku-external-mysql-database-connection -- 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: serving wong version ??
Hi Jay, I had a similar problem with a Rails app and about the time I was ready to give up I ran heroku restart and the problem fixed itself. The only time I have seen similar behavior in real live (off Heroku) is when .pyc files are hanging out that shouldn't be there. Deleting them usually does the trick. This shouldn't be a problem with you unless you are committing .pyc files, which could cause all kinds of nasty things to happen. Not sure if this will help you, but it's worth a try. Joe K On Mon, Mar 19, 2012 at 3:29 PM, Jay Baker jbaker.w...@gmail.com wrote: Hi all. I'm going nuts looking at this. I have an app that has been fine. I've been deploying to it now and then for a few weeks. Today things have gotten out of sync. I have a local branch master that is a tracking branch of my remote heroku/master. Both are pointing to the same commit. However, when I hit the pp, it is running code from several commits ago. For example, I am getting an exception from a line that is no longer in the code base. It is like the app is not updating. Nothing funky in the logs, and again, git says that are both pointing to the same commit. I'm running the python cedar stack. Obviously I am missing something that is staring me in the face, but I can't find it. Any helpful pointers? -- 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/-/h-v6IaGbFaEJ. 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. -- -- Joe Kueser (Sent from Gmail) -- 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: serving wong version ??
Have you ever run a `heroku rollback`? `rollback` will cause heroku to serve an older slug, but it won't have any impact at all on what commit the `master` branch points to. You can use `heroku releases` to get a clearer picture of what commit heroku thinks it's supposed to be serving. Of course, if your problem is persisting after pushing a shiny new commit, I'm barking completely up the wrong tree. I can't tell for sure if that's what's happening to you. On Tue, Mar 20, 2012 at 2:49 PM, Joe Kueser joe.kue...@gmail.com wrote: Hi Jay, I had a similar problem with a Rails app and about the time I was ready to give up I ran heroku restart and the problem fixed itself. The only time I have seen similar behavior in real live (off Heroku) is when .pyc files are hanging out that shouldn't be there. Deleting them usually does the trick. This shouldn't be a problem with you unless you are committing .pyc files, which could cause all kinds of nasty things to happen. Not sure if this will help you, but it's worth a try. Joe K On Mon, Mar 19, 2012 at 3:29 PM, Jay Baker jbaker.w...@gmail.com wrote: Hi all. I'm going nuts looking at this. I have an app that has been fine. I've been deploying to it now and then for a few weeks. Today things have gotten out of sync. I have a local branch master that is a tracking branch of my remote heroku/master. Both are pointing to the same commit. However, when I hit the pp, it is running code from several commits ago. For example, I am getting an exception from a line that is no longer in the code base. It is like the app is not updating. Nothing funky in the logs, and again, git says that are both pointing to the same commit. I'm running the python cedar stack. Obviously I am missing something that is staring me in the face, but I can't find it. Any helpful pointers? -- 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/-/h-v6IaGbFaEJ. 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. -- -- Joe Kueser (Sent from Gmail) -- 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.
failure to start standalone java process
Hello, I have a script called start-server.sh that would start a Java process and listening on some ports. It works correctly locally but it failed once deployed to Heroku. % heroku run sh target/classes/start-server.sh Running sh target/classes/start-server.sh attached to terminal... /usr/ local/heroku/lib/heroku/client/rendezvous.rb:33:in `initialize': Network is unreachable - connect(2) (Errno::ENETUNREACH) from /usr/local/heroku/lib/heroku/client/rendezvous.rb:33:in `open' from /usr/local/heroku/lib/heroku/client/rendezvous.rb:33:in `start' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/timeout.rb:62:in `timeout' from /usr/local/heroku/lib/heroku/client/rendezvous.rb:27:in `start' from /usr/local/heroku/lib/heroku/command/run.rb:35:in `index' from /usr/local/heroku/lib/heroku/command.rb:129:in `send' from /usr/local/heroku/lib/heroku/command.rb:129:in `run' from /usr/local/heroku/lib/heroku/cli.rb:9:in `start' from /usr/bin/heroku:28 I have no idea how to proceed from here with this error message. -- 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: External database connection via SSL
Neil, That worked beautifully. Thanks! Nathan P.S. For future reference by others, I'll post an answer on my stackoverflow question with some more specific details. On 03/20/2012 02:31 PM, Neil Middleton wrote: From looking at the injected database.yml (see bottom of http://neilmiddleton.com/sharing-databases-between-heroku-applications/) you can pass in extra configuration as part of the db URL as query params. In theory, this should let you configure it how you want although I've not tried it. -Neil -- 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.