Re: [Radiant] Re: Radiant on Heroku - Extension problem

2011-02-08 Thread Fima Leshinsky
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

Re: [Radiant] Re: installing scoped_access plugin?

2011-02-08 Thread Fima Leshinsky
/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

Re: [Radiant] Re: installing scoped_access plugin?

2011-02-08 Thread Fima Leshinsky
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

Re: [Radiant] Re: installing scoped_access plugin?

2011-02-08 Thread Fima Leshinsky
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

Re: [Radiant] Re: installing scoped_access plugin?

2011-02-08 Thread Fima Leshinsky
-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

Re: [Radiant] vhost extension configuration

2011-02-08 Thread Fima Leshinsky
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

Re: [Radiant] vhost extension configuration

2011-02-08 Thread Fima Leshinsky
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

Re: [Radiant] vhost extension configuration

2011-02-08 Thread Fima Leshinsky
Wow .. I stepped away for a bit .. reloaded the page and hit the + New Homepage button again ... and ... it just worked .. wtf ..

Re: [Radiant] Re: Kramdown vs. markdown filter

2011-01-01 Thread Fima Leshinsky
so i removed the kramdown filter extension (rm -rf vendor/extensions/kramdown-filter) and re-installed it as a gem: $ gem install radiant-kramdown_filter-extension + added config.gem 'radiant-kramdown_filter-extension' to config/environment.rb + restarted my app server voila! kramdown works

Re: [Radiant] Re: deploying radiant 0.9.1 with capistrano

2010-12-18 Thread Fima Leshinsky
looks like this was an issue w/ my env path from what i could tell - everything is working fine now . i'm able to deploy + migrate cleanly. woohoo! On Fri, Dec 17, 2010 at 4:31 PM, Fima Leshinsky flesh...@gmail.com wrote: sigh so here's where things are failing for me now. This seems like it's

Re: [Radiant] Re: deploying radiant 0.9.1 with capistrano

2010-12-17 Thread Fima Leshinsky
hm .. so I got the database.yml symlink in place but now there's this. any ideas how to debug it? the user that I'm connecting to the server with owns all of the application tree so I'm not sure why it's complaining about access to the log file. any ideas where to even begin? * executing cd

Re: [Radiant] Re: deploying radiant 0.9.1 with capistrano

2010-12-17 Thread Fima Leshinsky
.. going to play with that and see what happens :P On Fri, Dec 17, 2010 at 10:57 AM, Fima Leshinsky flesh...@gmail.com wrote: hm .. so I got the database.yml symlink in place but now there's this. any ideas how to debug it? the user that I'm connecting to the server with owns all

Re: [Radiant] Re: deploying radiant 0.9.1 with capistrano

2010-12-17 Thread Fima Leshinsky
hm .. so it looks like git is placing the submodules (extensions) located in vendor/extensions in shared/cached-copy instead of the 'current' directory . do i need to symlink the extensions from the shared directory to 'current'? On Fri, Dec 17, 2010 at 11:06 AM, Fima Leshinsky flesh

Re: [Radiant] Re: deploying radiant 0.9.1 with capistrano

2010-12-16 Thread Fima Leshinsky
Thanks for all the helpful posts. So I've got capistrano deploying my github-hosted application to my staging server. Works great! I'm not using bundler yet as I'm not sure of the benefits there. One of the problems I'm running into is deploying migrations (capistrano complains that it's not able

Re: [Radiant] deploying radiant 0.9.1 with capistrano

2010-12-14 Thread Fima Leshinsky
You guys are awesome will give this a shot. Where does bundler fit into all of this?

Re: [Radiant] Re: deploying radiant 0.9.1 with capistrano

2010-12-14 Thread Fima Leshinsky
hm .. if you're not using bundler then maybe i shouldnt either? maybe it's overkill for a noob like me who's just starting out w/ ruby / radiant. how do you handle the case where you want to play around w/ a gem in your dev. environment but not deploy it to production? On Tue, Dec 14, 2010 at

Re: [Radiant] Re: Re: best code syntax highlighting solution

2010-12-13 Thread Fima Leshinsky
Looks like coderay is working well. I installed: coderay gem + radiant extension @ https://github.com/phallstrom/code_ray and now I can specify r:code blocks! not sure what the benefits are of kramdown over the existing Markdown radiant filter that comes with the Coffee blog template. If you

Re: [Radiant] Re: best code syntax highlighting solution

2010-12-12 Thread Fima Leshinsky
So looks like there are two radiant extensions below that allow you to leverage the coderay gem: https://github.com/phallstrom/code_ray https://github.com/alno/radiant-code-extension I'm inclined to use the the 2nd one since it supports other syntax highlighters beyond coderay. What are your

Re: [Radiant] best code syntax highlighting solution

2010-12-08 Thread Fima Leshinsky
Thanks John - will take a look. Do you have any public pages you can share as examples?

Re: [Radiant] Re: image 404s

2010-12-01 Thread Fima Leshinsky
Can you hit other assets in the /admin dir w/ curl and do u get a 200? On Dec 1, 2010, at 6:02 PM, rosslaird r...@rosslaird.com wrote: Thanks for the help. Unless I've done something incorrectly, this: select * from page_parts where content like '%button.png%', etc. returns no results (I

Re: [Radiant] Re: image 404s

2010-12-01 Thread Fima Leshinsky
Yup so your request path/URI is wrong. Do a: $ pwd; ls -lh inside your image directory On Dec 1, 2010, at 8:08 PM, rosslaird r...@rosslaird.com wrote: Nope. I get 404 for them all. R. On Dec 1, 7:55 pm, Fima Leshinsky flesh...@gmail.com wrote: Can you hit other assets in the /admin dir

Re: [Radiant] Re: How can i deploy radiant application to sub-directory?

2010-11-27 Thread Fima Leshinsky
Why wouldn't a web-server-level (e.g. Apache) rewrite work? Thanks, Fima