Hi All,
I have read all the commands in Install Plugins in Discourse. But I didn’t get the result what I am looking for. I am having one issue while cloning the plugin form Azure repo. Could some one help me to fix that. Below is my app.yml file:
run:
- exec: echo "Beginning of custom commands"
- exec: cd /var/www/discourse && sudo -u discourse bundle install --deployment --without test --without development
- exec: mkdir /root/.ssh/
- exec: touch /root/.ssh/known_hosts
- exec: ssh-keyscan -t rsa azure.microsoft.com > /root/.ssh/known_hosts
- exec: echo "Host azure.microsoft.com\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config
#- exec: mkdir -p /root/.ssh
- file:
path: /root/.ssh/id_rsa
chmod: 600
contents: |
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,19EA4589000FE19E7F44F2E86FDA3990
LVu2mQfE468ewQs4dbNN/VQ0ocVx
7bxXEvdz6VDgkanHKDsadfasgqw3tfy+1Mh4VtW7iHbOORE.. etc...
-----END RSA PRIVATE KEY-----
- file:
path: /root/.ssh/id_rsa.pub
chmod: 600
contents: ssh-rsa AAAAB3NzaC1ycadfasdfsalkfffjsggsadfdfsf My@abc-31.local
- exec: cd $home/plugins && git clone yec-addx@vs-ssh.visualsdio.com:url-for-private-plugin
- exec: cd $home && sudo -E -u discourse bundle exec rake db:migrate
- exec: cd $home && rm -fr tmp/cache
- exec: cd $home && sudo -E -u discourse bundle exec rake assets:precompile
- exec: rm /root/.ssh/id_rsa
- exec: rm /root/.ssh/id_rsa.pub
- exec: echo "End of custom commands"
Error After ./launcher rebuild app
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && git clone yec-addx@vs-ssh.visudio.com:url-for-private-plugin failed with return #<Process::Status: pid 4231 exit 128>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "cd $home/plugins && git clone yec-addx@vs-ssh.visudio.com:url-for-private-plugin"
Could some one me to fix this issue. Many thanks in advance…