Would you mind opening up an issue for this?

https://github.com/saturnflyer/radiant-vhost-extension/issues

On Feb 8, 2011, at 14:54 , Fima Leshinsky wrote:

> Hm .. I also had to set site_admin = true to be able to login to the backend:
> 
> ree-1.8.7-2010.02 > user = User.find_by_login('admin')
> ree-1.8.7-2010.02 > user.site_admin = true
> ree-1.8.7-2010.02 > user.save!
> 
> On Tue, Feb 8, 2011 at 11:34 AM, Fima Leshinsky <flesh...@gmail.com> wrote:
>> Oh wow .. figured it out :) Is this a bug w/ the gem/extension?
>> 
>> So it looks like add_site_columns.rb is part of the gem:
>> $ ls -lh 
>> ~/.rvm/gems/ree-1.8.7-2010.02/gems/radiant-vhost-extension-2.3.1/lib/tasks/
>> total 24
>> -rwxr-xr-x  1 fimaleshinsky  staff   1.2K Feb  8 10:02 add_site_columns.rb
>> -rwxr-xr-x  1 fimaleshinsky  staff   5.6K Feb  8 10:02
>> vhost_extension_tasks.rake
>> 
>> I copied it over to lib/tasks and the install rake task completed like
>> a charm ..
>> $ cp 
>> ~/.rvm/gems/ree-1.8.7-2010.02/gems/radiant-vhost-extension-2.3.1/lib/tasks/add_site_columns.rb
>> lib/tasks/
>> 
>> $ rake production radiant:extensions:vhost:install --trace
>> (in /Users/fimaleshinsky/Sites/heroku)
>> ** Invoke production (first_time)
>> ** Execute production
>> ** Invoke environment (first_time)
>> ** Execute environment
>> ** Invoke radiant:extensions:vhost:install (first_time)
>> ** Invoke environment
>> ** Invoke radiant:extensions:vhost:migrate (first_time)
>> ** Invoke environment
>> ** Execute radiant:extensions:vhost:migrate
>> ** Invoke radiant:extensions:vhost:apply_site_scoping (first_time)
>> ** Invoke environment
>> ** Execute radiant:extensions:vhost:apply_site_scoping
>> ==  AddSiteColumns: migrating 
>> =================================================
>> -- add_column("layouts", :site_id, :integer)
>>   -> 0.0397s
>> -- add_column("pages", :site_id, :integer)
>>   -> 0.0047s
>> -- add_column("snippets", :site_id, :integer)
>>   -> 0.0055s
>> -- add_index(:snippets, [:name, :site_id], {:unique=>true})
>>   -> 0.0060s
>> -- add_index(:snippets, [:name, :site_id])
>>   -> 0.0007s
>> ==  AddSiteColumns: migrated (0.0763s) 
>> ========================================
>> 
>> ** Execute radiant:extensions:vhost:install
>> 
>> 
>> On Tue, Feb 8, 2011 at 11:31 AM, Fima Leshinsky <flesh...@gmail.com> wrote:
>>> The only file I have in lib/tasks is vhost_extension_tasks.rake .. is
>>> lib/tasks/add_site_columns supposed to be copied over during the
>>> extension install?

Reply via email to