Might I suggest using foreman locally for better dev/prod parity? Mark
On May 26, 2013, at 8:43 AM, Jack R-G <[email protected]> wrote: > Hi Guys, > > Thanks for the advice. Turned out the problem was in my Procfile. I had > "web: bundle exec unicorn start -p $PORT -c ./config/unicorn.rb" which is of > course incorrect - needed to remove the "start". And of course, the Procfile > was not in use in my development system so that explains why it worked there. > > Just to chronicle my adventures, once I found and fixed that problem, it then > ran, but all the workers immediately exited with status code "1", so the > master would continually start workers only to have them immediately exit. > After some playing around, I removed the "preload_app = true" command and the > workers started normally. So I think the problem was the amount of memory > consumed when preloading the entire app (fortunately, large portions of the > app are only used by the background worker, so they don't need to load at > all). So now we come to my next question: does anyone know a technique for > preloading **parts** of the application. I imagine that I could use some of > the techniques involved in thread safety to pre-load the rails framework. > But what's the best way to preload all the models? > > -- > -- > You received this message because you are subscribed to the Google > Groups "Heroku" group. > > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > 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 [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
