How would you do that from a database migrations perspective? -- Pat
On 25/06/2012, at 10:29 PM, Ngan Pham wrote: > As you suggested that it's not necessary to restart TS every deploy except > when making index changes. I just wanted to automate the process so a > developer would have to remember to restart TS or not. Would be nice for the > deploy process to see that the indexes have changed and restart TS > automatically. > On Monday, June 25, 2012 at 1:24 PM, Pat Allan wrote: > >> Well, you could SHA or MD5 the files to easily note whether they've changed >> - but that won't tell you whether it's just the data that's changed, or the >> structure of them - so it's not useful as an indicator of whether you need >> to run ts:rebuild as part of a deploy, if that's what you were thinking? >> >> -- >> Pat >> >> On 25/06/2012, at 6:46 PM, Ngan wrote: >> >>> Is there a reliable, programatic way of determining if your indexes have >>> changed? E.g. a SHA of the indexes? >>> >>> On Friday, June 8, 2012 8:52:32 AM UTC-7, Pat Allan wrote: >>> Yeah, if you keep things to the shared paths, then you should be fine. >>> Those docs certainly need some work (most of my deployments are to Heroku >>> these days, so I'm a bit out of practice with Capistrano). >>> -- >>> Pat >>> >>> On 08/06/2012, at 5:50 PM, Michael Guterl wrote: >>> >>>> Nope. I was just following the instructions detailed here: >>>> >>>> http://freelancing-god.github.com/ts/en/deployment.html >>>> >>>> I was thinking I only need to symlink, but I probably don't even need to >>>> do that seeing that the sphinx.yml points to the shared path. Do you agree? >>>> >>>> Thanks, >>>> Michael Guterl >>>> >>>> On Thursday, June 7, 2012 3:55:23 PM UTC-4, Pat Allan wrote: >>>> Hi Michael >>>> Are you using ts:rebuild? You probably don't need to do that - indeed, >>>> treat the ts:rebuild task like db:migrate: it's only necessary when you >>>> add/remove indices or make changes to their structure. There's no need to >>>> restart Sphinx on every deploy. >>>> >>>> Cheers >>>> >>>> -- >>>> Pat >>>> >>>> On 07/06/2012, at 9:39 PM, Michael Guterl wrote: >>>> >>>>> Currently when I deploy, searchd is restarted which causes my application >>>>> to raise errors if someone is trying to search or if a resque process is >>>>> using searchd. I'm using the capistrano tasks included in thinking-sphinx >>>>> and I'm wondering if there's any way to achieve a rolling (or >>>>> zero-downtime) deploy when using these tasks? >>>>> >>>>> Am I doing something wrong? >>>>> >>>>> Thanks, >>>>> Michael Guterl >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "Thinking Sphinx" group. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msg/thinking-sphinx/-/yXAAtZ0hRkQJ. >>>>> To post to this group, send email to [email protected]. >>>>> To unsubscribe from this group, send email to >>>>> [email protected]. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/thinking-sphinx?hl=en. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "Thinking Sphinx" group. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msg/thinking-sphinx/-/xlq7lE__VGcJ. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/thinking-sphinx?hl=en. >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Thinking Sphinx" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/thinking-sphinx/-/50QMvBurEJcJ. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/thinking-sphinx?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Thinking Sphinx" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/thinking-sphinx?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/thinking-sphinx?hl=en. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
