चल इनकार किया मैं बहुत की तरह एक circle.yml
फ़ाइल है: जब मैं आदेशों के अंदर रहते हैं चलानेCircleCI अनुमति बैश स्क्रिप्ट
/home/ubuntu/myproject/deploy.sh returned exit code 126
bash: line 1: /home/ubuntu/myproject/deploy.sh: Permission denied Action failed: /home/ubuntu/myproject/deploy.sh
:
dependencies:
override:
- meteor || curl https://install.meteor.com | /bin/sh
deployment:
production:
branch: "master"
commands:
- ./deploy.sh
जब मैं Github करने के लिए धक्का है, मैं त्रुटि मिलती है फ़ाइल के बाहर deploy.sh
(commands
के तहत) सब कुछ ठीक चलाता है।
circle.yml
फ़ाइल में
सब कुछ .. CircleCI docs में उदाहरण के साथ लाइन में हो रहा है क्या मैं गलत कर रहा हूँ?
मुझे पता चला कि यह समाधान स्क्रिप्ट निष्पादित करने के लिए काम करता है, हालांकि '' 'sh''' का उपयोग करके कुछ एक्सटेंशन अक्षम होते हैं। https://unix.stackexchange.com/questions/155838/shell-script-throws-a-not-found-error-when-run-from-a-sh-file-but-if-entered-ma – eczajk
@ eczajk तो इसके बजाय '- bash।/deploy.sh' का उपयोग करें। – MikeSchinkel
@ माइकस्चिंकेल धन्यवाद, जो मेरे लिए काम करता है – eczajk