I did some more digging and think I found a little issue, correct me
if I'm wrong.
Assuming in environment.rb I specify the following:
Then look at the boot.rb which contains this method:
def parse_gem_version(text)
$1 if text =~
/^[^#]*RADIANT_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
end
That RegEx matches a version like "0.9.0" but it doesn't match
"0.9.0.rc2". Therefore my setting isn't getting picked up. My
quickfix is to just define the constant in boot.rb instead of
environment.rb which removes the need for this parse_gem_version
method.
Any better suggestion?
- Jeff
---
Jeff Casimir
Jumpstart Lab by Casimir Creative, LLC
http://jumpstartlab.com
@jumpstartlab on twitter
On Sun, May 16, 2010 at 5:02 PM, Jeff Casimir <[email protected]> wrote:
> Both are good solutions -- thanks!
>
> - Jeff
>
>
> On Sun, May 16, 2010 at 3:02 PM, john muhl <[email protected]> wrote:
>> freeze your 0.9rc2 app (requires git to be in your path).
>>
>> cd /path/to/project
>> rake radiant:freeze:edge TAG=0.9.0.rc2
>>
>> On Sun, May 16, 2010 at 1:39 PM, Jeff Casimir <[email protected]>
>> wrote:
>>> All,
>>>
>>> I'm ready to deploy my first 0.9rc2 site, but my server has other
>>> existing 0.8.x sites that I don't want to mess with. What should I
>>> put in the config files to explicitly set the radiant gem version
>>> number?
>>>
>>> Thanks,
>>> Jeff
>>>
>>> ---
>>> Jeff Casimir
>>> Jumpstart Lab by Casimir Creative, LLC
>>> http://jumpstartlab.com
>>> @jumpstartlab on twitter
>>>
>>
>