Re: [Radiant] Re: installing scoped_access plugin?
On Feb 8, 2011, at 12:14 , Fima Leshinsky wrote: Thanks John! So odd. It worked on the Empty database template install but when I tried to run it w/ any of the other options it failed: Select a database template: 1. Empty 2. Roasters (a coffee-themed blog / brochure) 3. Simple Blog 4. Styled Blog [1-4]: 1 Any ideas how to get the Roasters template to work w/ the vhost extension? Try setting up your template first, and then install the extension (you can move it out of vendor/extensions and then move it back in if need be). I'm in the process of making this extension easier to use (it's not mine originally) but haven't done much with it lately. -Jim On Tue, Feb 8, 2011 at 9:06 AM, john johnm...@gmail.com wrote: the plugin should be included with the extension. setup is pretty straightforward: radiant -d sqlite3 radiant_vhost cd !$ rake db:bootstrap git clone git://github.com/saturnflyer/radiant-vhost-extension.git vendor/extensions/vhost rake radiant:extensions:vhost:install ./script/server
Re: [Radiant] Re: installing scoped_access plugin?
Thanks Jim - that's exactly what I was trying to do. Here's were I'm getting stuck: $ gem install radiant-vhost-extension (update config/environment.rb with: config.gem 'radiant-vhost-extension', :lib = false) $ rake production radiant:extensions:vhost:update $ 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 rake aborted! no such file to load -- /Users/fimaleshinsky/Sites/heroku/lib/tasks/add_site_columns Any ideas? On Tue, Feb 8, 2011 at 9:24 AM, Jim Gay j...@saturnflyer.com wrote: On Feb 8, 2011, at 12:14 , Fima Leshinsky wrote: Thanks John! So odd. It worked on the Empty database template install but when I tried to run it w/ any of the other options it failed: Select a database template: 1. Empty 2. Roasters (a coffee-themed blog / brochure) 3. Simple Blog 4. Styled Blog [1-4]: 1 Any ideas how to get the Roasters template to work w/ the vhost extension? Try setting up your template first, and then install the extension (you can move it out of vendor/extensions and then move it back in if need be). I'm in the process of making this extension easier to use (it's not mine originally) but haven't done much with it lately. -Jim
Re: [Radiant] Re: installing scoped_access plugin?
do you have the same problem if you install the extension into vendor/extensions?
Re: [Radiant] Re: installing scoped_access plugin?
yup - same exact problem .. Here's where this file is being required: $ grep -r add_site_columns . ./lib/tasks/vhost_extension_tasks.rake:require #{File.dirname(__FILE__)}/add_site_columns On Tue, Feb 8, 2011 at 9:59 AM, john johnm...@gmail.com wrote: do you have the same problem if you install the extension into vendor/extensions?
Re: [Radiant] Re: installing scoped_access plugin?
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? On Tue, Feb 8, 2011 at 10:05 AM, Fima Leshinsky flesh...@gmail.com wrote: yup - same exact problem .. Here's where this file is being required: $ grep -r add_site_columns . ./lib/tasks/vhost_extension_tasks.rake: require #{File.dirname(__FILE__)}/add_site_columns On Tue, Feb 8, 2011 at 9:59 AM, john johnm...@gmail.com wrote: do you have the same problem if you install the extension into vendor/extensions?
Re: [Radiant] Re: installing scoped_access plugin?
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?
Re: [Radiant] Re: installing scoped_access plugin?
yay! my first issue submission - i hope I didn't butcher it :P https://github.com/saturnflyer/radiant-vhost-extension/issues/issue/10 On Tue, Feb 8, 2011 at 12:06 PM, Jim Gay j...@saturnflyer.com wrote: 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?