[Radiant] Re: installing scoped_access plugin?
Ok so what I'm really trying to do is install the Saturnflyer's vhost extension. rake complains of a missing lib/tasks/add_site_columns file. Any ideas? $ rake production radiant:extensions:vhost:install (in /Users/fimaleshinsky/Sites/heroku) rake aborted! no such file to load -- /Users/fimaleshinsky/Sites/heroku/lib/tasks/ add_site_columns (See full trace by running task with --trace)
[Radiant] Radiant on Heroku - Extension problem
Hi i successfully pushed a radiant project to heroku. everything works fine except that the extensions in vendor/extensions aren't loaded. Although locally everything works fine, the extensions in the extensions directory are empty on heroku, So what could the cause be?
[Radiant] Re: Radiant on Heroku - Extension problem
ok, i figured out why the extensions directory is empty. git added those as submodules, so git never pushed them to the server. Now i have to figure out how to remove the submodule and add the extensions as normal content. On Feb 8, 10:17 am, Hadi S. poph...@gmail.com wrote: Hi i successfully pushed a radiant project to heroku. everything works fine except that the extensions in vendor/extensions aren't loaded. Although locally everything works fine, the extensions in the extensions directory are empty on heroku, So what could the cause be?
Re: [Radiant] Re: Radiant on Heroku - Extension problem
I just went through this dance last week :) Check out: http://docs.heroku.com/constraints#git-submodules Also here's the quick and easy way to install extensions that play well w/ Heroku: $ git clone git://github.com/saturnflyer/radiant-vhost-extension.git vendor/extensions/vhost and optionally/when available: $ rake radiant:extensions:extension_name:update $ rake radiant:extensions:extension_name:install then push to Heroku! $ git push heroku master $ heroku db:push Hope that helps! On Tue, Feb 8, 2011 at 2:42 AM, Hadi S. poph...@gmail.com wrote: ok, i figured out why the extensions directory is empty. git added those as submodules, so git never pushed them to the server. Now i have to figure out how to remove the submodule and add the extensions as normal content. On Feb 8, 10:17 am, Hadi S. poph...@gmail.com wrote: Hi i successfully pushed a radiant project to heroku. everything works fine except that the extensions in vendor/extensions aren't loaded. Although locally everything works fine, the extensions in the extensions directory are empty on heroku, So what could the cause be?
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?
Re: [Radiant] Accessing Rails generators from a Radiant app
Hi, I was looking for another devise thread on the ML and I found yours. Add this to script/generate to load an unpacked gem generators: gems_path = File.expand_path(File.join(RAILS_ROOT, %w(vendor gems))) sources Rails::Generator::PathSource.new(:gems (vendor/gems), #{gems_path}/*/**/{,rails_}generators) I had exactly the same problem. HTH Enrico On Wed, Dec 8, 2010 at 11:47 PM, Mario Aquino mario.e.aqu...@gmail.com wrote: I am just getting started on a new radiant site. I generated it via the radiant shell command (v0.9.1 gem). I would like to use devise as the authentication mechanism for the site. I came across a wiki page explaining how to do it: https://github.com/radiant/radiant/wiki/Using-Devise-as-an-authentication-system-for-Radiant-end-users The wiki page calls for following the devise instructions for gem installation and then generator usage for creating a custom user model (along with other instructions for setup). My problem is that I can't seem to access the devise_install generator (or any other generator that isn't included with radiant). When I run script/generate, I see: Installed Generators Builtin: extension, extension_controller, extension_mailer, extension_migration, extension_model, instance, language_extension None of either the Rails generators or generators provided by gems I have installed in my environment are visible to me. Is there some step I need to do to be able to see non-radiant generators? Thanks in advance, --Mario -- Enrico Teotti IT consultant, accessible web sites and web applications currently working @ http://www.redant.com.au Sydney, NSW, Australia enrico.teo...@gmail.com mobile (AU) +00610416748450 http://teotti.com
[Radiant] Seeking a Radiant Expert / Programmer for Contract
I am seeking a Radiant Expert / Programmer to help me on a project. We are converting a static site, which currently contains 100's of pages, to a dynamic template based site. All of the HTML/CSS, Javascript, and JQuery has been developed. We have already setup our Production Environment, which will be running on Heroku w/ AWS hosting our Assets. We are willing to change this if the programmer has a better solution. The existing site gets over a million unique visitors a month. We don't have a huge budget but are willing to pay for the best programmer for the job. Below are the requirements. We are looking for an individual, but if you have a team, we will consider that as well. Radiant Experience. Candidate must have successfully deployed at least 3 radiant sites. Must have knowledge of existing radiant extensions (i.e. PageFactory, Settings, Paperclipped, etc.) Must be able to create / modify extensions or gems Must have at least 2 years of ROR programming experience Must have experience Deploying to multiple Hosting Environments. Cloud based experience is a huge plus. Must have experience integrating Radiant with Search Engines, such as, SOLR or Sphinx Search Must be familiar with JQuery, CSS, and Javascript, but if you are an expert please let us know. Must have experience integrating Radiant with Facebook, Twitter, Disqus, Outbrain, Feedburner, and ShareThis Experience with Heroku and AWS is a huge plus Experience with Facebook Connect is a huge plus Please email your background, contact info, list of existing radiant sites, and/or resume or website to radiant.programm...@gmail.com I need this resource asap!!! Best Regards, GV
Re: [Radiant] Re: Radiant on Heroku - Extension problem
On 08.02.2011, at 11:42, Hadi S. wrote: ok, i figured out why the extensions directory is empty. git added those as submodules, so git never pushed them to the server. Now i have to figure out how to remove the submodule and add the extensions as normal content. in Capfile: require 'capistrano/deepmodules' in config/deploy.rb set :git_enable_submodules, 1 or use: https://github.com/iteh/radiant-capistrano-extension On Feb 8, 10:17 am, Hadi S. poph...@gmail.com wrote: Hi i successfully pushed a radiant project to heroku. everything works fine except that the extensions in vendor/extensions aren't loaded. Although locally everything works fine, the extensions in the extensions directory are empty on heroku, So what could the cause be? -- DI Edmund Haselwanter, edm...@haselwanter.com, http://edmund.haselwanter.com/ http://www.iteh.at | http://facebook.com/iTeh.solutions | http://at.linkedin.com/in/haselwanteredmund
Re: [Radiant] vhost extension configuration
On Feb 9, 2011, at 0:07 , craayzie wrote: So I now have the vhost extension installed and I was even able to create a 2nd site via the Sites tab within the admin UI. Problem is I'm lost as to where to go from here. When I visit my newly created site - the first (default) site is displayed. How do I get radiant + vhost to display the empty 2nd site based on the new hostname that I've specified when creating the 2nd site in the admin panel? Thanks for the help as always. It depends on what you've setup. I'll often (in development) set one site to be localhost and another to 0.0.0.0 and another to 127.0.0.1 All of those point back to your internal webserver and Radiant can answer for 3 different sites. Does that help? -Jim
Re: [Radiant] vhost extension configuration
That seems very odd. How does Radiant know which site you're requesting? In your examples, the browser wouldn't send an HTTP Host header which is really the only way to differentiate between site A and site B at the HTTP level. Also localhost is just an entry in your /etc/hosts file (assuming you're on a un*x-based system), which by default is configured to resolve to 127.0.0.1. Since Radiant only sees HTTP - both of those requests would appear identical to it. In my case - Radiant is serving up the default site regardless of what Host header it sees. Do I need to make a change somewhere else to add new sites using the vhost extension? Interesting that the Site model doesn't contain a hostname field. Where is the hostname of each site specified? Site.find_each {|s| p s} #Site id: 1, config: {title=Default} #Site id: 2, config: {title=Effective Web Presence} Thanks again! It depends on what you've setup. I'll often (in development) set one site to be localhost and another to 0.0.0.0 and another to 127.0.0.1 All of those point back to your internal webserver and Radiant can answer for 3 different sites. Does that help? -Jim
Re: [Radiant] vhost extension configuration
Well I'm a complete N00b to RoR so please bare w/ me but I just discovered this: ree-1.8.7-2010.02 ActiveRecord::Base.connection.tables = [schema_migrations, config, extension_meta, layouts, page_parts, pages, sessions, snippets, users, sites_users, hostnames, sites] Woohoo! So there are Hostname and Sites_user models! ree-1.8.7-2010.02 Hostname.find_each {|h| p h} #Hostname id: 1, domain: *, port: 80, site_id: 1, created_at: 2011-02-08 17:07:06, updated_at: 2011-02-08 17:07:06 #Hostname id: 2, domain: www.fleshins.com, port: 80, site_id: 2, created_at: 2011-02-09 04:24:11, updated_at: 2011-02-09 04:24:11 = Hostname(id: integer, domain: string, port: string, site_id: integer, created_at: datetime, updated_at: datetime) For some reason I can't get to the Sites_user model though .. ree-1.8.7-2010.02 Sites_user.find_each {|u| p u} NameError: uninitialized constant Sites_user Now if only I knew where to go next :P
Re: [Radiant] vhost extension configuration
On Feb 9, 2011, at 0:33 , Fima Leshinsky wrote: That seems very odd. How does Radiant know which site you're requesting? In your examples, the browser wouldn't send an HTTP Host header which is really the only way to differentiate between site A and site B at the HTTP level. Also localhost is just an entry in your /etc/hosts file (assuming you're on a un*x-based system), which by default is configured to resolve to 127.0.0.1. Since Radiant only sees HTTP - both of those requests would appear identical to it. In my case - Radiant is serving up the default site regardless of what Host header it sees. Do I need to make a change somewhere else to add new sites using the vhost extension? Interesting that the Site model doesn't contain a hostname field. Where is the hostname of each site specified? Site.find_each {|s| p s} #Site id: 1, config: {title=Default} #Site id: 2, config: {title=Effective Web Presence} Dig into the models. A site has_many :hostnames https://github.com/saturnflyer/radiant-vhost-extension/blob/master/app/models/site.rb Setup your sites with differing hostnames and then open different browser windows and request them. This works just fine for me. Thanks again! It depends on what you've setup. I'll often (in development) set one site to be localhost and another to 0.0.0.0 and another to 127.0.0.1 All of those point back to your internal webserver and Radiant can answer for 3 different sites. Does that help? -Jim
Re: [Radiant] vhost extension configuration
Wow .. I stepped away for a bit .. reloaded the page and hit the + New Homepage button again ... and ... it just worked .. wtf ..