我正在嘗試將我的應用程序部署到與Capifony共享的1 & 1共享主機。Capifony任務部署:update_code提取失敗文件
我正在使用deploy_via: 'copy'
策略。
我的部署在deploy:update_code
任務中失敗。
capifony輸出:
--> Updating code base with copy strategy
* getting (via checkout) revision to /tmp/20140120140204
executing locally: cp -R . /tmp/20140120140204
command finished in 242ms
* Compressing /tmp/20140120140204 to /tmp/20140120140204.tar.gz
executing locally: tar czf 20140120140204.tar.gz 20140120140204
command finished in 1428ms
servers: ["MyApp"]
** sftp upload /tmp/20140120140204.tar.gz -> /tmp/20140120140204.tar.gz
[MyApp] /tmp/20140120140204.tar.gz
[MyApp] done
* sftp upload complete
* executing "cd /kunden/homepages/16/XXX/htdocs/MyApp/releases && tar xzf /tmp/20140120140204.tar.gz && rm /tmp/20140120140204.tar.gz"
servers: ["MyApp"]
[MyApp] executing command
** [out :: MyApp] tar (child): /tmp/20140120140204.tar.gz: Cannot open: No such file or directory
** [out :: MyApp] tar (child): Error is not recoverable: exiting now
** [out :: MyApp] tar:
** [out :: MyApp] Child returned status 2
** [out :: MyApp]
** [out :: MyApp] tar:
** [out :: MyApp] Error is not recoverable: exiting now
** [out :: MyApp]
command finished in 148ms
*** [deploy:update_code] rolling back
問題:
我怎麼能解決這個問題?
'SFTP上傳/tmp/20140120140204.tar.gz - >的/ tmp/20140120140204.tar.gz' - >'SFTP上傳complete' 。該文件沒有被上傳到'〜/ tmp',而是'/ tmp'。你沒有針對'/ tmp'的read-permisssions(只看寫權限),因此提取失敗。 – nifr
該文件上傳到'〜/ tmp',我看到它。而我的用戶擁有'/ tmp'的讀權限 – user2357533