Ruby on Rails Friday, November 29, 2013

Now I just changed this to 
task :register_dirs do
    set :uploads_dirs,    %w(/../../shared/ckeditor_assets)
    set :shared_children, fetch(:shared_children) + fetch(:uploads_dirs)
  end

It is creating a ckeditor_assets folder but it is not opening. May be permission issue. 

On Friday, 29 November 2013 16:17:29 UTC+5:30, debadatta wrote:
Thank you very much Frederick Cheung for reply. 

task :register_dirs do
    set :uploads_dirs,    %w(public/ckeditor_assets)
    set :shared_children, fetch(:shared_children) + fetch(:uploads_dirs)
  end 

probably you are saying about this to create a directory for shared/ckeditor_assets where as this is creating a folder shared/public/ckeditor_assets. I have cheked the folders there are no folders such like that after deplyment.

Also for deleting public/ckeditor_assets.. yes i think it gets deleted and after the deployment I can not able to fetch this directory also.
Shall I need to change anything except this in my deploy.rb.

Any help appreciated.
Thanks

On Friday, 29 November 2013 16:06:52 UTC+5:30, Frederick Cheung wrote:


On Friday, November 29, 2013 10:02:33 AM UTC, debadatta wrote:

I could not figure this out why my public/ckeditor_assets folder is not copied to shared/ckeditor_assets and doesnt symlink also.

Just so you we are clear, you do realise that these cap tasks *delete* public/ckeditor_assets ? They then symlink to shared/ckeditor_assets, but obviously that needs to be created by you.The setup task does look like it is half trying to do that but you don't seem to be invoking it, furthermore it would seem to be creating shared/public/ckeditor_assets rather than shared/ckeditor_assets

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8ca4aa6c-e9db-45a6-8a93-cc9292e760d7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment