1
我已經使用Rails 4.0.0,ckeditor資產在部署帽後移除
在帽部署後,ckeditor資產正從服務器中刪除。
任何人都可以請幫忙。
這些代碼在deploy.rb
# if you want to clean up old releases on each deploy uncomment this:
after "deploy:restart", "deploy:cleanup", 'deploy:update_crontab'
namespace :deploy do
task :start, :roles => :app do
run "touch #{current_path}/tmp/restart.txt"
end
task :stop, :roles => :app do
# Do nothing.
end
desc "Restart Application"
task :restart, :roles => :app do
run "touch #{current_path}/tmp/restart.txt"
end
after 'deploy:update_code' do
#run "cd #{release_path}; RAILS_ENV=production rake db:create"
run "cd #{release_path}; RAILS_ENV=production rake db:migrate"
run "cd #{release_path}; RAILS_ENV=production rake db:seed"
run "cd #{release_path}; RAILS_ENV=production rake assets:precompile"
run "ln -s #{shared_path}/public/ckeditor_assets #{release_path}/public/ckeditor_assets"
end
desc "Update the crontab file"
task :update_crontab, :roles => :db do
run "cd #{release_path} && whenever --update-crontab #{application}"
run "cd #{release_path}; tail -f log/cron_log.log"
end
他們從共享文件夾中刪除或者是什麼? – phoet
可能是..但我怎麼能做到這一點? – Debadatt
完成什麼?我問你在哪裏刪除了這些文件。從共享文件夾?他們沒有鏈接到應用程序?他們只是在瀏覽器中丟失? – phoet