سؤال

وكابيسترانو بنشر الباردة، ونشر التحديثات وتحميل الغرامة الرمزي. انها لن ومع إعادة تشغيل.

ولقد لاحظت ونفى ان تكون إذن على / عملية / ملف حصادة / النصي. لقد وجدت اقتراح ل يعني الاحتياجات ملف الأذونات التي تم تحديثها. هل لديها خبرة في هذا؟

Macintosh-5:barcoden fogonthedowns$ cap deploy:restart
  * executing `deploy:restart'
  * executing "/home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper"
    servers: ["owens.fogonthedowns.com"]
Password: 
    [owens.fogonthedowns.com] executing command
 ** [out :: owens.fogonthedowns.com] sh: /home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper: Permission denied
    command finished
failed: "sh -c \"/home/fogonthedowns/owens.fogonthedowns.com/current/script/process/reaper\"" on owens.fogonthedowns.com
Macintosh-5:barcoden fogonthedowns$ 
هل كانت مفيدة؟

المحلول

ما هي بيئة النشر الخاصة بك؟ مع الركاب (أباتشي) لدي شيء من هذا القبيل:


  task :restart, :roles => :app, :except => { :no_release => true } do
    run "touch #{current_path}/tmp/restart.txt"
  end

نصائح أخرى

وأما إجابة المحدثة، لكابيسترانو 3 يعمل على الركاب هنا هو ما أقوم به حاليا:

task :restart do
    on roles(:app), in: :sequence, wait: 5 do
      # If your tmp folder does not exist yet, uncomment the 
      # line below to create it.
      # execute :mkdir, "#{File.join(current_path,'tmp')}"
      execute :touch, "#{File.join(current_path,'tmp','restart.txt')}"
    end
end

ولديهم منتديات الدعم الخاصة بهم، ربما عليك أن تحاول هناك. http://groups.google.co.uk/group/capistrano/

والقضبان 2،3 السفن لم تعد مع البرامج النصية حصادة القديمة. http://www.capify.org/index.php/How_to_use_Capistrano_with_Rails_2.3

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top