# Install plugin from private Git repository?

**URL:** <https://meta.discourse.org/t/install-plugin-from-private-git-repository/111250>\
**Category:** Development\
**Created:** [March 8, 2019, 7:42am UTC](https://meta.discourse.org/t/install-plugin-from-private-git-repository/111250 "2019-03-08T07:42:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Muthukkumar](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Muthukkumar](https://meta.discourse.org/u/Muthukkumar)\
**Post date:** [March 8, 2019, 7:42am UTC](https://meta.discourse.org/t/install-plugin-from-private-git-repository/111250/1 "2019-03-08T07:42:18Z")

</div>

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:

```plaintext
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…

---

_[View the full topic](https://meta.discourse.org/t/install-plugin-from-private-git-repository/111250)._
